After you file

Yes, the IRS will take your refund and apply it to the year that it's owed to regardless if you have a payment plan paying it off. Any left over will be sent to you.