Can religion have negative effects on one's mind and life?

I've grown up very religious and grew up kind of strict. I'm at the age where I am a grown man but feel like there are mental blocks in my mind that has inhibit my ability to be a normal person. Like no premarital sex is engraved in my mind, no cursing, etc. It is so embedded in my mind that It held me back from not having a girlfriend or being flirtatious with women. I fear that it has damaged me permanently mentally. How can I break down these mental blocks and start to live?
Can religion have negative effects on one's mind and life?
Post Opinion