Mr Kipling:
You could visit a shrine and pray or you could stay home and do nothing..... You would get exactly the same result...
Probably not.
Prayer is an ancient form of positive thinking. And there are many studies about benefits of positive thinking.