One year old throwing up from cough

My one year old has a fever and a really bad cough. Every time she coughs now she throws up, should I call her on call doctor or take her somewhere?