No, that is a profoundly ignorant perspective on the truths and pragmatism of ancient wisdom.
The pagan religions were not merely created to explain the unexplainable. Pagan myths and legends imparted greater truths and wisdom, they encoded history and science, and they explained psychological human behavior and interactions with nature. These truths were conveyed very precisely, intricately, exactly as they were, from the cultural perspective, but they are nonsensical to you who will always be outsiders to that tribe, space, and time. The ancients, even illiterate peasants and slaves, had a marvelous grasp of metaphor, allegory, and allusions even to the "pop-culture" of their day! Some of us still do!
Pagan religion was a unifying force for any tribe or nation. The reason it was supplanted with monotheism was because those tribes were unable to unite, or even interact, trade, and communicate efficiently, while still worshiping multiple pagan gods. Therefore, Abrahamic religions became an even grander unifying force on global scales, while still serving the purposes of those ancient myths and legends. As popular piety and local legend was permitted and absorbed, those monotheistic religions were able to flourish and intertwine with those cultures.
To repeat the tired old canard that religion was perpetuated by ignorant benighted dullards, in order to cope or merely survive, is scurrilious, anthropologically ignorant, and shockingly arrogant. The hierarchies and rulers of the ancient world knew exactly what they were doing in every respect. YOU are afraid of spiritualities and the supernatural which you do not understand, and so you denigrate them. Likewise do President Trump and the wisdom of Qanon know what works. Just because they don't think or act the way you expect, doesn't make them stupid or inferior to your atheism/scientim.