When should I go to the ER?

I’ve had really bad morning sickness so about a week and a half ago I got prescribed unisom and b6. I felt that it helped at first but yesterday I didn’t keep down my lunch or dinner, including liquids, this morning I didn’t keep down my breakfast or liquids, so I went to pick up my new prescription for new nausea medicine, which I took 5 hours ago and I went to sleep right after. I woke up, ate and now I’m feeling that I’m about to throw up again. If I do throw up should I go to the ER?