Ironically the opposite also can happen. I became an atheist by buckling down and reading the bible to shore up my faith to prepare for a morality disagreement with my parents...
Only made it to god giving permissions to have slaves in exodus when I stopped and asked myself... wait I'm looking to this guy for my ideal morals?