I would be leery. On the one hand, if the worms get in contact with pesticide, it should kill them. So if there are any, it would seem they don't have pesticides on them. But I'd still be a bit leery.
I wouldn't do it. Many chemicals can bio-accumulate if it didn't kill the worms outright.
Try mealworks from a pet store or even bait worms from the fishing shop.