Yes, you can use treated lumber for your raised vegetable garden beds. Homeowners ask if it is safe to use treated lumber for garden beds. ... Copper is also a common fungicide for food crops used by consumers for growing vegetables and is a disinfectant in swimming pool chemicals.