Can your refund go straight to the debit/credit card?

I may have used the wrong number when stating where I wanted my refund to go. I used my card's number and not my checking account's number. Will this affect where this will go or will it still end up in the account?