Generally, Pulumi projects should describe resources that have aligned deployment schedules. For example, you probably want to update application infrastructure a lot more frequently than the persistent database underneath, so you should seriously consider using different projects for deploying the app and persistence infrastructure.
With this in mind, and given than ECR is likely to be deployed a lot less frequently than business logic, you may want to have two separate projects, even though they can be in the same project.