Virtualmin panel accessed through subdomain?

I want to set up Virtualmin as my panel, but I want the host address to be subdomain.domain.com

Do I simply set the host name as subdomain.domain.com, then create virtual server domain.com, then create subdomain.domain.com?

Would that actually work?

If not, I’m not sure how to do it, so any instructions would be appreciated!