if you changed the rack, took off the tie rod ends and all, it needs an alignment regardless.
unless you took all the other cars parts and left it whole, its parts could be shot or worn out. inner tie rods, outer tie rods.
either way it should get an alignment. the rack and tie rods are your toe in and out.