Yes, you can do a subfolder, but it’s really not recommended. It adds lots of complexity and mostly no one believes that using a subfolder has SEO advantages, best I can tell. That said, I think that some hosted client(s) has subfolder, so it should work.
See Subfolder support with Docker for more information.