What steps can one take to prevent pneumonia recurrence?

I recently recovered from pneumonia. Can I be affected again?