Enter your Set up iPhone to get SMS, MMS, and RCS messages on Mac.
All messages you send or receive appear on both devices, even if you’re texting someone without an iPhone.
If you don’t want to see messages on your Mac, you can sign out of iMessage.
Go to the Messages app Change iMessage settings in Messages on MacApple Support article: If you can’t turn on or sign in to iMessage or FaceTime