Can chest discomfort during flu and cough indicate pneumonia?

Can I have chest discomfort due to pneumonia?