Depressants sertraline

So I’m 30 weeks pregnant and have had some really bad struggles going on, I won’t go in to detail but my doctor gave me sertraline and I’m a little worried, I have done research but it don’t really seem to help! I don’t know if anyone on here can help me, but did it effect or cause any side effects to your unborn baby? Or when baby was born? I’ve basically only got 10 weeks left and the last thing I want is to cause my baby any harm before she is born. Can any one advise me or help me or even put my mind at rest?