In animals, it appears so.
When researchers transplanted gut bacteria from depressed people into germ-free mice, the mice started acting more anxious and withdrawn โ without changing anything else. It is a striking sign that gut microbes can carry mood-related effects, though humans are far more complex than mice.