Yes, stress can be a contributing factor to diarrhea in dogs and cats. Changes in routine, new environments, introduction of new pets or family members, or other stressful events can disrupt the digestive system and lead to diarrhea. Minimizing stress and providing a stable and predictable environment can help prevent stress-induced diarrhea.