That, and they can’t share port numbers, so you’ll have to change one or the other away from 80 and 443. But beyond that, they should coexist fine.
I have not used NCP, but if I’m not mistaken, I think there’s a Docker image for it too.
I’ve also done a couple “manual” Nextcloud installations where you install the Apache site locally and run MySQL, and I found that to be fairly easy as well.
What I really find captivating about Docker personally is how easily you can update the software. You just tell it to re-pull the images and hit go, service restarts and everything is updated just like that. And because the containers are sandboxed environments, they always have their own tried-and-proven dependencies install with them. No compatibility issues regardless of what the host system is.
If you really want to try Docker, I wrote a guide for it on a previous version. Maybe it’ll give you some insight.
https://help.nextcloud.com/t/howto-ubuntu-docker-nextcloud-talk-collabora/76430