Yes. Using docker is not like running your services inside VMs. It's a pretty lightweight way of structuring your services, with the host kernel shared by all instances.
I run everything in Docker on my RPi 4 and it works very well.