Thats what insurance is for. To buy you a new car when your engine blows.
Unless you're emotionally attached to the car. My dad has spent 10's of thousands of dollars on his car. He could have easily bought a new vehicle for what he's spent in 2 garage visits. He just loves that car.