Pneumonia can be contagious, so it's important to practice good hygiene to prevent the spread of germs. Wash your hands frequently, cover your mouth when coughing or sneezing, and avoid sharing personal items such as utensils or towels.