This is the case in reality. If you have pneumonia, you tend to develop resistance against the pathogen that caused the ailment. However, if this is not one among the 23 serotypes in the vaccination, you can get a shot to make yourself resistant against those 88% invasive pneumococcal bacteria on getting the shot. As such, pneumonia vaccine is not considered as a treatment for pneumonia