Not necessarily. Marigolds are commonly touted as beneficial companion plants that deter garden pests. However, their strong fragrance can actually stunt the growth of young cucumber seedlings if planted too closely. It's best to situate marigolds along the outer edges of the cucumber patch instead.