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

If the car is nice otherwise, It might still be a good purchase. There are not very many 12 year old cars without some problems. I would get it checked out by a shop who can also give you and estimate and check out the rest of the car.