Pneumonia is an infection that targets the lungs and can cause fever, difficulty breathing, and other symptoms. Pneumonia shots help prevent pneumonia. Eligibility Medicare Part B covers two separate pneumonia vaccines. Part B covers the first shot if you have never received Part B coverage for a pneumonia shot before.