Does throwing up while brushing your teeth harm the baby?

Chaunie

I have been so scared the past couple of weeks to brush my teeth and tongue at times because every time I throw everything up. Will doing this harm the baby? What should I do? Is there a solution?