Is there a vaccination against bacterial pneumonia?

Yes. The pneumococcal vaccines protect against bacterial pneumonia caused by the strep. Pneumoniae bacteria. The vaccine does not prevent pneumonias caused by other bacteria, viruses, or other germs.
Yes. Not for pneumonia in general but there is a vaccine against a common cause of community acquired pneumonia ( strep pneumonia) that many people should get, depending on medical history and age.