Is it really safe to eat food grown in urban gardens?

Between the industrial waste, rats, and lead dust floating around, I wasn't sure too sure if I should start an urban garden. The question took me to an unexpected place.