You can create a macOS build without having a Apple developer account but macOS will throw an error when someone tries to run a non-notarized executable. It’s possible for the owner of the computer to work around that, but the average user will unlikely be able to run your game.