While it may not be possible to prevent all causes of coughing, there are steps you can take to minimize the risk. Regular vaccinations and preventive measures against heartworm disease are important. Avoid exposing your pet to sick animals, secondhand smoke, and environmental irritants.