There is probably truth to this. Worms babies make cocoons that can go dormant and (maybe) pass through the human digestive tract?
All I know is when I got the ph of my soil right tiny baby worms just "appeared" with no adults so they didn't migrate from the surrounding soil, they hatched.