Yes. If you still owe tax due from a past year, the IRS will offset your 2022 refund for the tax owed. You do not have to enter anything about that on your 2022 tax return. The IRS knows and will take care of it automatically, then they will send you a letter.