Vomiting and diarrhea can be contagious in some cases. It is important to avoid close contact and to frequently wash your hands and clean surfaces that may have been touched by the person experiencing these symptoms. Typically, these conditions resolve on their own, and following these preventive measures is the best course of action.