Anyone taking medicine for your mental health ?

Are there really any risks taking medicine for depression and anxiety? I am 17 weeks pregnant and I truly need help. I am at a breaking point with my mental health and I feel like a failure for seeking medicine to help me while pregnant. But I think I’m going to ask for it next time I see my doctor.