Is it safe to take magic mushrooms?

Psilocybin mushrooms have been found to have minimal harmful effects and could potentially benefit those with depression. But they remain illegal, and there is a big risk if you eat the wrong type