not necessarily but it could be one (of many signs) that can include coughing chills fever respiratory difficulty chest pain/discomfort. yellow sputum is not a sole definitive sign of pneumonia.
is dirty yellow sputum a sign of pneumonia?