Is it possible to use AWS ECR as Docker's Registry?

It’s my fault not making myself clear, because I’m new to both Docker and AWS.
I also failed to mention I use docker compose at the moment to start a stack of about 8 different services. Some of them publicly available via Docker Hub (like MySql, Reddis, etc.), and some from a private repo in AWS ECR.
Basically my goal is for the following command: docker compose up, to automatically pull all images required for the stack to run. It was doing it fine for the public Docker Hub images (MySql, Reddis etc.). The problem is I did not know how to make it also pull images from private AWS ECR registry.
Before your comment, I was considering writing a Powershell script to scan through docker compose file, identify the private ECR images, and have the script pull them locally before running docker compose up file. But since you mentioned the following:

The name of Docker images contain the name and port of the registry

I’m assuming there is a way to simply set the image: tag inside docker-compose file to point to the AWR ECR registry? And then it’s just a matter of somehow supplying the credentials for docker compose to be able to pull it?