It would be impossible to deny that Freemasonry has not been influenced by Hermeticism. Consider the number of very influential men who embraced that philosophy - including Newton (who was not, so far as anyone can tell, a Mason). These were men who helped shape their society, the society in which Freemasonry also developed and matured. It would seem almost inconceivable that there were not men with both interests. Such men moved in similar circles, after all - the Royal Society being but one example. So, even at second-hand, Hermeticism had to have made a mark.
Yet the two are not the same and neither is derived from the other. At most (and I will admit that I am by no means an expert on Hermeticism) they share some parallel beliefs. So do Christianity and Islam, if it comes to that.
Nor is Freemasonry a religion. We do not promise salvation, have no special sacred text, do not offer sacraments, etc. Religious, yes, in terms of a belief in a deity and the saying of prayers during our ceremonies, but not a religion.
As to Newton, although some - perhaps rightly - call him the most influential man of all time, in some ways he would be regarded these days as a bit of a kook. In addition to his staggering achievements in mathematics, physics, etc, he spent a lot of time with alchemy, numerology, Biblical divination, etc - things we would nowadays regard as checkout-aisle trash.
Hope that helps. Thanks for the question.