Yes, it's advisable to remove and dispose of infected cucumber plants to prevent the spread of fungal spores to healthy plants. Dispose of infected plant material in the trash or by burning, rather than composting.