Depends on the fungus. Some are far more picky than others.
Magic mushrooms, in particular, love cow dung as a growing medium.
That being said, fungus tends to be nigh indestructible. The guy boiled it before injection which really speaks to just how hardy those spores can be.