Anxiety and depression affects cycles?

Emma • Mother of our lovely rainbow baby Annabelle.
My anxiety and depression became worse last month and my cycle was much longer than normal, I was late on my period and I was hoping I was pregnant but my period just came 8 days late. Anyone else had issues like this? I was wondering if my anxiety and depression could have changed my cycle?