You have one contract with your current shared hosting provider, but actually they are providing two services for you:
- DNS for your domain
- web hosting, currently used for Flarum on your root domain name (or maybe
www.example.com)
You can easily install or get Discourse at another provider, and then add a hostname record in your DNS (for instance forum.example.com) that points to this additional Discourse provider.