Yes, rosemary’s strong aroma is great for warding away pests from your other plants.