Yes, even if you don't access Codecommit frequently still you'll an active user. just call any one of the CodeCommit API that makes the user active,
GetBranch, GitPull, GitPush.
And if you make a call to "ListPullRequest" it won't charge you.
Want to become AWS Expert? Come & join AWS Course.