Are plumbing vents always on the roof?

Are plumbing vents always placed on the roof, or can they be vented through walls or attics instead?