Coughing is not related to the pregnancy. Your cow has a cold. If you have a vet you work with ask the vet to examine the cow to see what is wrong. If not, support the general health of the cow as much as you can - plenty of clean water and food. Given time and proper care she should fight off the cold or other infection on her own.