Each individual worm needs to be researched before feeding them but as a rule most non-compost worms should be safe.
Sorry I couldn't give you a more clear-cut answer but without knowing which worm you are talking about I want to error on the side of caution.
With that being said I know I have no wild compost worms in my soil so all the worms I catch and feed are safe.