No, you cannot transfer rewards directly to a student loan. You will need to link a 529 College Savings Plan account or a checking/savings account to receive your rewards.
Once your rewards have been transferred to a checking/savings account, there are no restrictions on how you use the money. Rewards transferred to a 529 College Savings Plan account are treated as contributions and are subject to all of the rules applicable to 529 Plan contributions.