Yes. If your lender follows Fannie Mae’s rules and you pay the full credit card balance by closing, the lender can leave that card’s monthly payment out of your debt-to-income ratio (DTI). You can keep the card open. Fannie Mae’s rule for debts paid by closing.
Say your lender counts $6,000 in monthly income before taxes. Your proposed housing payment and other monthly debts total $2,100, including a $150 minimum payment on a card with a $3,000 balance. Your DTI is $2,100 ÷ $6,000 = 35%. If the lender removes that $150 payment and everything else stays the same, your debts fall to $1,950 a month and your DTI drops to 32.5%. It takes $3,000 in cash to remove $150 from the monthly calculation. How Fannie Mae calculates DTI.
Before moving the money, ask your loan officer whether the payoff would remove that payment and what proof to provide. Check how much cash you would have left for closing costs and any savings the lender requires you to keep. If your loan follows another program’s rules, ask how that program treats the payoff.
To see the effect on your own budget, try the mortgage affordability calculator with and without the card’s monthly payment.