Rocks close to mid oceans are younger or older?

The closer a rock is to a mid-ocean ridge, the younger they are.