Throwing up since yesterday

I’m 23 weeks pregnant. I have been throwing up since yesterday afternoon and have continued all night. Do I need to call my doctor to get an appointment or just go to the ER? I’m shaking I feel so off and I’m incredibly dizzy.