Not married and ttc

What's your opinion on it? We aren't married and are ttc. Today I had someone tell me that if I get pregnant we are "sinning" and "will pay for it". Wth???