Can my app and my website have different domain names?

I purchased a URL for my website and a different one for my app. Is that alright, or do I have to give the app a subdomain URL of the website?

They can be any domains that you own.