Taking Antidepressant While Pregnant

So my doctor prescribed me zoloft for my anxiety and I am 18 weeks pregnant. I was just wondering if any of you ladies have taken this kind of medication or any other anti depressant and your baby came out just fine? I do feel the need to take it because all my anger and anxiety just keeps building up and it leads up to me just crying and being SO frustrated. All I'm asking is for some advice or what your outcome was. Yes, my doctor prescribed it to me BUT when I was pregnant the first time a doctor prescribed zofran for my nausea (which was REALLY bad) and I saw a commercial that said "if you're pregnant and taking zofran, to stop because it can cause a heart defect, cleft lip and any other problems that I cannot rememeber) but I'm seeing a different doctor now.

*Thank you for those who read this entire post*