I always add earthworms to my containers and have been doing so for close to 40 years.
After harvest and checking the root systems, I always find more earthworms than what I put in, leading me to conclude that they breed in the pots, so whatever I am doing, the worms must like it!
I would have to conclude that it is a great idea.