27 weeks and I have the most awful cough

So I was told that I shouldn’t worry unless I have a fever but I’ve been coughing non stop for 2 days now and at night it’s really bad.. I’m worried that it might hurt the baby. What should I do?