Growing vegetables in plastic containers can be safe as long as you are able to identify the plastic as safe for growing food. Some plastics can leach harmful toxins into the soil, especially if exposed to sunlight for prolonged periods of time, making them unsafe for growing vegetables.