Is there way to use secondary domain to branch depolys

Hello.
I’m interested if I can use aliased domain to branch depolys.
E.g.
Main domain: www.maindomain.com
Alias domain secondarydomain.ga
Branch name: develop
I want to access develop branch via develop.secondarydomain.ga but in the same time it should not be accessible via develop.maindomain.com

From my reading, and from my tests, I don’ believe this is possible.