Sick @ 24 weeks

I’m 24 weeks and I have a bad stomachache with vomiting. I don’t feel like myself. When should I call my OB?