No, gastritis itself is not contagious. However, if gastritis is caused by an H. pylori infection, the bacterium can be transmitted from person to person through close contact, such as sharing food or utensils. Proper hygiene practices can help prevent the spread of H. pylori infection.