The caterpillars of may beautiful butterflies and moths kill and eat food bearing plants like Sphinx moths larva, tomato and tobacco horn worms eat tomato plant leaves and fruit. People use BT to kill the larva.
I think it would be good and I've heard of people planting sacrificial plants along with plants they expect to get a crop from. I think that's an excellent idea.
Dave