Help understanding the structure of using discourse + static website

Hey purldator, thanks for taking some time to help me out.

Here is the structure I’d like to have:

example.com

contains all the static site stuff

discourse.example.com

contains discourse

I want to just link to discourse.example.com from example.com and then have the same header on discourse.example.com if that makes sense.

Do I just need to point my subdomain at the discourse IP address?
Will that work properly? Is there anything I need to do with the NS records?

Thanks again.