If you owned the car that was totaled, you probably can use the insurance settlement for anything you like. But if the car was financed, the insurance company will make sure you pay off what you owe.