Is there way to use secondary domain to branch depolys

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

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