33 weeks and cant keep anything down

so I've been having cramps and back pain since last night today I woke up and just felt sick but I still tried to eat I've thrown up everything I have eaten, if I'm not throwing it up I'm pooping it out. I feel weak and tired. should I call my doctor or is it just a stomach bug.