The Buddha takes no position on gods, he suggests they may exist or they may not, but either way you can live a moral life.