Can stress cause a miscarriage?

I’ve been crying all day and been depressed. It happens often. Today it’s been so much my stomach has been hurting all day. It comes and goes. Right on my lower stomach. Can this harm my baby in anyway ? Could I have a miscarriage?