But there are many exceptions. For example, Cambridge (red), Somerville (yellow), Chelsea (green) and Roxbury (blue) are all within approximately the same distance of the center.
Distance to a T station, not to downtown. Cambridge and Somerville are considerably more expensive than Roxbury generally. Within any of the neighborhoods you listed, you'll find that rent goes up as you get closer to a T station.