Getting vaccinated after getting pneumonia might not help in treating the infection that has set in. Getting vaccinated helps in the development of antibodies within your system which would help in fighting against 23 serotypes of pneumonia causing bacteria. Getting the ailment automatically makes you resistant tot hat strain that caused the ailment