What you're referring to is known as a "debt consolidation loan". The article I've linked below has helpful information to assist you.
https://loans.usnews.com/debt-consolidation
*** I am NOT a tax expert. I am a seasoned TurboTax user, and volunteer to provide assistance to TT users. Nothing I post is to be considered TAX ADVICE; I bear no legal liability for responses.***