DNS question

So the A record for example.com would point to the IP of the discourse server and the CNAME would have community.example.com be an alias of example.com?

Wouldn’t that put the discourse server at example.com? Sorry just trying to get this straight in my brain