Generally, untreated wood like Cedar or untreated pine is safer for edibles. Treated wood, while more resistant to rot and pests, often contains chemicals that can seep into the soil and plants, posing health risks. If you go the treated route, ensure it's labeled safe for edibles and raised beds.