"Minecraft" offers cross-platform play for both versions of the game — Bedrock and Java — but you can only play with users who own the same version.
You can add friends in "Minecraft" through their Microsoft account's gamertag, regardless of which platform they use to play the game.
Short answer: yes, you can play Minecraft on a Mac. But there are some things you should know before you start — especially if you care about mods, server hosting, or running different editions like ...