Prior to Mohammed there was a Quraysh Moon Diety named Allah. After his conquest of the Quraysh tribe, Mohammed made Allah the Monotheistic entity that has no son.
The word "Allah" has nothing to do with the moon. There are various Arabic words for moon: badr, qamar, hilal, etc.