Not really sure, to be honest. If he is, he must be in the Ayn Rand “guiding moral force to the universe” atheist camp. In other words, not a real atheist.
That could explain his view and in some way his even-handed treatment of religion. Later Star Trek in my opinion was never very kind to religion.