Pneumonia is bacterial in origin. It can transmit via air or through surfaces. As such it can be contagious.
roman