I would not know, religion is a personal thing and can be a strength for people when times are bad.
Now in the past religion was abused by all kinds of people, the church of Rome itself and powerful people who could control people through a corrupt church system in which rich people (however corrupt and evil) could buy the front seats and sit piously in the front pew while doing everything wicked under the sun in the 6 other days of the week. They could also buy indulgence, a church document saying all your sins and evils were forgiven, for a fist full of whatever currency they used in the middle ages.
That is why Marx used to say religion is the opium of the people. Not the opium for the people because what religion was in that time was a way to keep people meek and obedient to the church and in Marx's mind the leading classes. Marx did not want to forbid religion, all the fake communist countries who did that were not being marxist but just dictatorial. They wanted to give the impression that their people were so happy that religion had vanished/virtually no longer needed. Because that is what Marx said, if people are really happy they do not need religion to numb their pain/take the edge off.
But coming back to your comment, as said, I am not sure. I do think it could be true for some people but most religious people take their responsibility, with some nudging maybe of their holy book or church, but still mostly they do it for themselves and that choice is made by themselves. It was much more true in the past when people were taught not to worry about this life because your reward would come in the afterlife, now most people try to do good here on earth too.