Can sickness harm baby?

Can my baby be harmed by whatever I have?? Coughing up mucus, super sore throat and exhaustion due to coughing so much. I’m 29w on Monday and just a worrier