Okay, for those that do not know, Windows and Mac computers are almost interchangeable these days for many things. This is one of them. They are both PCs and if you are both playing on PC you can play together... with a couple caveats.
First, to play online with each other you will both need to purchase it from the same provider, for example if you both buy from Steam or you both buy from GOG.
Second, you don't need to play online and use Steam or GOG to connect your computers if you are sharing a LAN. If you will only be playing multiplayer on a LAN, it doesn't matter where either of you purchase.