Hi Martin,
If it's pointing to a single server, then other elements (like the database, the PHP settings, the Elasticsearch index, etc) should all be fine, as there is no conflict.
The one minor element I could think of - in Admin > Settings > Site information, administrators should set a Base URL for the site - this is used when preparing certain export paths, so you should confirm that whatever Base URL you set still works for serving up files when users arrive at your site from the second URL. However, if both paths are valid, then I don't think you should have any issues!
That said, I'm an archivist, not a system administrator, and I haven't personally tested this particular deployment strategy. So - try it out, and if it's not working, I can see if our team has any general suggestions that might point you in the right direction.
Cheers,