Can i apply my state refund as payment to my federal taxes due?

i owe money for federal, but i'm getting a refund for my state taxes.