How Safe is it, Really, to Eat Food Grown in an Urban Garden?

Or: Can I eat this tomato I grew on my roof?