Friends

So I moved to be with my family, I did leave the church when I was 15 and a half now I'm 20. I went to church with my one friends that's Mormon as well. I'm trying to get back into it. Well I'm not married but I'm pregnant. And my friend told me to never talk to her again and I better repent as much as I can, that way I'll be accepted again. And I didn't mean to but I just lost it and went to my old ways and told her to f off. But does the church really not accept you as one if you are pregnant and not married or engaged? I don't want to offend anyone but if it's that way then I don't want to go back