Stomach pain and diahreaa

I have had stomach pain and diarrhea that it hurt to stand up or walk and I immediately had to go to the bathroom. I will be 7 weeks tomorrow. Could this be a miscarriage