There are several agents that cause infectious meningitis
and all are contagious.
The 3 major bacterial agents have preventative vaccines that have eliminated most cases of these diseases in the U.S., saving thousands of lives. In some cases, antibiotics given to exposed people may prevent the spread. If you are concerned consult with your doctor.