Pneumonia vaccine is a defensive mechanism that can help in fighting a possible pneumococcal infection in future. If you have pneumonia even after that, it might be due to a different variant of pathogen not contained in the vaccine. Pneumonia is contagious and can be spread to people around