It’s doable but it’s a more advanced setup, only recommended for experienced users: Run other websites on the same machine as Discourse.
If you aren’t already familiar with hosting multiple domains and nginx reverse-proxy configuration it’s easier and faster to use another server for it.