Yes, but worms are a source of soil-dwelling pathogens and often carry parasite eggs.
Feeding an organism something that it would not normally encounter is not recommended. It's a good way to expose a species to something they have not evolved to handle.