It depends on the pest control method and whether it is applied directly to the plant. For instance, insecticidal soap loses its potency after it dries. However, it is a good idea to rinse off the vegetables before you eat them. If you use neem oil to control garden pests, wait five to seven days before harvesting.