Mustard greens and celery can both repel cabbage worms and help you protect your plants. Sowing flowering plants, like dill and yarrow, can also encourage beneficial insects to visit your garden. These predatory bugs will feed on pests, including cabbage worms.