This is a common expression to describe the larval stage of Lepidoptera. But they are only "worms" in the sense of their Proto Indo-European word origin meaning to "to twist" of "turn", snake or dragon like. Anyway, they aren't earthworms and they don't even taste like earthworms.