I always thought so.
I did not know that one could be vaccinated against a bacterial infection.
I didn't know there is a pneumonia vaccine. A search reveals that it might cost about $25 so I might get it come summer. Summer because I'd prefer to suffer in warm weather should I have some reaction to it.