Yes, pneumonia can cause lung nodules to form. Certain risk factors such as older age, smoking status, and history with cancer can affect the likelihood of a lung nodule forming.