Sickness in pregnancy

Jacob

I'm 22 weeks I'm be felling really bad I have a lot of dry cough and headache i don't know what to take to help me with the pain and the cough I can't stop cough all night Im really scared because the baby ever happened with any one? What i can take for it? Should I call the doctor about it?