DocFraggle yes, clearly.
Or, if you want to use an external certificate you can follow steps here:
https://docs.mailcow.email/post_installation/firststeps-ssl/
Then, you can use an external tool (certbot, LeGo, etc.) to process the cert request using a DNS validation method (depending on your DNS provider) to issue the certificates and/or a wildcard.
In general I’d suggest to only have the hostnames used on the email server and not to use a wildcard unless necessary (although easier to use, sometimes).