19 weeks pregnant

I am 19 weeks pregnant now but I have that having this really harsh cough which is causing me to cancel my stomach a lot,is that harming the baby at all? This cough has been going on for pretty much the entire pregnancy