Using a subdomain as a custom domain

My apologies if this is a very simple question - is it possible to use a subdomain as a custom domain?

i.e. the examples use YOUR_DOMAIN.com as the custom domain, and login.YOUR_DOMAIN.com as being the redirect to auth0.

Would it be possible to have YOUR_SUBDOMAIN.YOUR_DOMAIN.com as the custom domain, and login.YOUR_SUBDOMAIN.YOUR_DOMAIN.COM redirecting to auth0?

The context for this request is that my product owner would like our site/application to exist at a subdomain below our company’s domain, and we will have a separate user database to that used when logging in to the company domain.

Thanks for your help.