A cough and fever is an early sign of pneumonia. Usually, the cough is associated with phlegm or sputum that comes from the lungs during the infection.