Yes, you can raise goats in the city to provide your own meat, milk, dairy products, fertilizer, and more. Check your zoning laws to be sure it is legal. Like chickens, it seems that there are more large cities that allow goats than small towns. They are legal in Chicago and Seattle, just to name a couple. And they have goats at the Growing Power Urban Farm in the middle of Milwaukee.
I presented the following PowerPoint to an engaged and excited audience at the Growing Power Conference in Milwaukee this past weekend.