Religion can definitely influence a person but not always. No matter how much we teach a person who is addicted to gambling about religion or take him to a religious institution, I don't think it will do much good. But everybody will not behave the same way. If the gambler does not know and realize the negative aspects of his addiction, nothing can turn a gambler away from his gambling addiction. But I am not completely denying that there are some people who fear religion. Therefore, they refuse to do any such work outside of religion. For those people religion will work to some extent.