diarrhea at 24 weeks now throwing up!!,should i be worried?

could this cause pre term labour and should I be making my way to the er?