Religion often teaches that masturbation and sexual activity outside of marriage are wrong in hopes of preventing promiscuity, supporting monogamy, and emphasizing traditional family life. Children and teens learn to associate sex with feelings of shame and guilt from a young age. This can lead to loss of libido, difficulty getting and staying aroused, and other sexual problems in adulthood.