If you suspect you have pneumonia, go to the doctor. If you have a cough that won’t go away, chest pain, shortness of breath, or a fever, or if you suddenly begin to feel worse after having a cold or flu, call your health care provider.