Bt works for the caterpillars (often called "worms") that come from cabbage butterflies (or any other caterpillars for that matter), but not for earthworms. I've never personally had earthworms bother my cabbage or other garden plants, but I imagine it would be possible for them to work their way into the cabbage plants.