The same is true of putting equity in a new car. While you could take out a loan to purchase a new vehicle, you can’t impair your partner’s credit during a divorce, and any equity you put into the vehicle will be divided at the date of the divorce.
A better solution might be to lease a new vehicle. There’s no ownership equity so you won’t have to split the value of it with your spouse.
Divorces can be messy, especially when it comes to shared property and accounts. Another thing to be mindful of is dividing your car insurance policy (if you haven’t already).