Purchasing an electric vehicle from family member, family member financed and would pass loan to me. If I purchase the vehicle this way, do I still get the tax credit?

Vehicle is a 2022 Ioniq 5
I owe 3,700 to IRS. Would this help remove that debt?