Will the state refund deduct what I owe on the federal?

State says I have lets pretend $20.00 And I owe federal $5.00 When I went to see my status it says I will get $15.00 But last I checked I opt for them to withdraw money from my bank on a specific date when I received the refund ( to help pay that federal due ). Its so confusing. I want to assume, that I have nothing to worry about.