Fertility meds causing anxiety/depression

Can fertility meds cause anxiety and depression?

I feel so hopeless..like I need to cry but I can't...like I can't even breathe... like my problems are going to be the death of me :(

I'm not normally like this at all. I'm wondering if it could be the meds? If so how quickly will this go away after I stop taking them?