Can you play Minecraft Java edition on MacOS?

Yes

Yes - go here to buy Minecraft!