Well, as long as you don't mind those plants falling through the roof.  Or do you no realize that planter boxes and soil and water are HEAVY?  And require a LOT more support structure than most cost-effective roofs employ?