Is it possible to use different subdomain for website?

I’m using the python app runner with flask to make a website and I was wondering if it was possible to use 2 different subdomains.

E.g.
I use panel.example.com to access AMP and the other instances but I use website.example.com to access the website.

Yes, you use a reverse proxy. If you’re already using nginx then you’re half way there.