Connecting two next applications to the same domain and its subdomain

Hi, tell me, I have two repositories with next applications, I can bind one application to the main domain and bind the second application to a subdomain

Yes, you can do that. Create 2 sites eac with its own repository and attach a custom domain to each like you’d normally do.