Can I setup a mail server in CyberPanel while the domain is on different server

Hello guys, I want to setup as the default SMTP email server for However website will be hosted on server A and the will be hosted on server B (which is CyberPanel). Is this possible? What would be the configuration? Both servers will use Cloudflare DNS.