Not all cases of diarrhea can be passed from person to person—but many of the main causes of diarrhea are contagious.