Will Wells Fargo take what I owned them before sending my refund back to the irs ?

My tax preparer didn’t change my direct deposit number and used my old one that was overdrawn and I believe closed, I know that the process is them rejecting and sending it back to the irs before they send me a paper check. But is Wells Fargo allowed to take what I owe them for an old account?