Using untreated pine lumber for vegetable beds' frames is fine, but will only last for about 5 years as it will rot in contact with the earth, water, etc. Treated lumber will last "forever" but I won't risk toxicity leaching into the soil. Cedar and redwood will last longer than pine but I'm...