Is it possible for depression to be another indicator of pregnancy?

Recently I've been suspecting I might be pregnant. And now I've been really depressed and it's like severe depression I think. I feel like I can't do anything. I'm lucky I was able to shower last night. But it's hard to make myself do anything and I've skipped 2 going on 3 days of my job program. I can't seem to take care of myself or do anything. And I feel like I can't talk to anyone. And I keep having thoughts like I'm a worthless piece of shit, no one loves me or cares, I don't have family or friends or anything. But because there's other things that make me suspect that I'm pregnant, I'm kinda worried and curious because I'm having such a difficult, miserable time. And my period is due on the 18th in 2/3 days so I might not get the most accurate result if I tried going and getting a pregnancy test tomorrow. Plus my cycles are irregular so I might have to wait a few extra days.
Updates
+1 y
I'm talking about why I'm having this depression at this time along with other different things, not about wondering if I am pregnant or not. That I can find out with a test in a few days.
Second, I'm not saying that pregnancy is the only thing that can be related to depression
Is it possible for depression to be another indicator of pregnancy?
Post Opinion