Should I buy a used car that needs a new rack and pinion?

I would suggest calling a mechanic and state the issue and ask for estimate. This type of repair cab approach $1000 dependent on your locale.

Hopefully car has a good price.

DO NOT OVERPAY because it has 60k miles that is irrelevant on a 12 year old car.

I know a three Corolla owners who make it 8-10 years without any sort of maintenance but occasional oil changes. They move on with the spent car and some unlucky soul gets it next. Not sure if this one falls in that category.