Mary isn't God, or part of the Trinity, in a Biblical sense. 

But Ba'al worship involved a Goddess called the Queen of Heaven that can be traced back to the Sumerians, the most ancient recorded history, c.3000 BC. 

The Canaanites inherited this same pagan religion and this was at least part of the reason why God instructed the incoming Hebrews to destroy them totally (c.1400 BC). Temple prostitutes existed as a form of worship to the deity. Ba'al continued on into Phoenician society, traveled to Carthage along with their traders who settled in North Africa, until the Romans destroyed Carthage in 146 BC. 

However, the Queen of Heaven didn't end with the destruction of Carthage. It had already earlier spread into Greece, where she was called Hera, and into the Rome as Juno. More here;

https://en.wikipedia.org/wiki/Queen_of_heaven_(antiquity)