Has anyone had bad anxiety through their pregnancy and had baby turn out fine?

I'm 21 weeks pregnant and currently struggling with this I'm hoping it's not affecting my baby.