Yes this is a possible use case. You can create CodeBuild or CodePipeline in Prod or Stg account, and reference to the Repo in Dev account. To do this, you would need a role created in Dev account which can be assumed by Prod or Stg account. See this blog for your reference.
Connecting code commit from one aws account to amplify in other aws account
Does Git-LFS (Large File Storage) have support in Code Commit?asked 7 months ago
Use same CodeBuild project for multiple GitHub repositoriesAccepted Answerasked a year ago
When will we have PR preview feature for aws code commit ?
Pessimistic locking implementation using AWS code commitasked 5 months ago
share code commit repositories between aws accountsasked 7 months ago
Structure of Repositories for Resource creation and lambdasasked 5 months ago
Arbitrary upstream repositories: on the roadmap?asked 9 months ago
Code Commit Branching ErrorAccepted Answerasked 4 years ago
Moving resources between AWS accountsasked 2 months ago