Yes, but mushrooms are typically harder to identify than plants are, so AI is surely not very good at it. Even mycologists are only learning in recent years that some mushrooms which they had long believed to be the same species are in fact entirely different species (thanks to genetic testing).
I myself forage for both plants and mushrooms and I practiced identifying mushrooms for years before I would eat anything I found.
Finding random mushrooms and learning to identify them (which includes learning if they are edible) is absolutely how you should start in amateur mycology, especially if you don't have any mycology groups nearby that you can join. And if you do, you know what that group will do? Gather random mushrooms to learn/teach identification.
Just don't go around eating random stuff.