Yes, it’s possible. No problems are usually expected as Docker container ship their own base OS in their image. There’re already quite some Ubuntu 20.04 LTS setups with mailcow in use, including myself - no specific issues so far.
The only thing to note is about Docker 20.10: mailcow/mailcow-dockerized3915