Flowers are a great way to deter pests and invite pollinators into your vegetable garden. Borage and cosmos attract garden-friendly insects, while edible flowers like pot marigolds make a great addition to any harvested meal. Many flowers, such as lavender and marigolds, also repel common pests from harming your vegetables.