Medically reviewed by Patricia Mikula, PharmD Taking probiotics (beneficial living microbes) and magnesium together is considered safe and may help with inflammation, depression, and stress coping.