Nah, Allah as Lunar deity is retrospective hateful revisionism.
Just like the other 2 "religions of the book", Islam has always been sternly monotheistic as a core tenet and as a distinctive feature, particularly in the earliest days.
So, the Kaaba in Mecca was apparently a pre-islamic gathering of idols, including Allat (mentioned there) and probably the moon and what not (they were all kicked out and it's now empty, like the Jewish temple was, apparently much to the disappointment of the romans).
There is the black stone there too, if course, which is distinctly cosmic and lithic etc, and still revered in Islam
There is no conclusive pre-islamic "historical" mention of Mecca, the tradition is that it goes back to Abraham - his footprint is preserved in the middle of the concourse.
So Islam was a very progressive and modern force from the start, scientific and embracing rationality. Dictating improvements to women's entitlements, and inclusive across race and religions - a superceding ideology,
I follow a brilliant twitter that posts up early islamic rock carvings which connect all this with the historical record in Arabic that is still easy to read
The original banner of Islam was the one adopted recently by the neo-primitives of ISIS - the black flag with the declaration of the faith, in that same early calligraphy and the prophet's seal. Some very early relics can be seen among the ottoman leftovers in the topkapi palace in istanbul as well as scattered around the islamic world.