Docker next to Nextcloud

Hi, I installed NextcloudPi because it was easier for me to install, rather than with Docker. I wanted to know if now that I installed Nextcloud, I can install Docker next to NC. Like just do an apt install docker. I want to use docker for PhotoPrism or reverse proxy for example.

should be fine