Yes, but you must remember to change the 529 plan beneficiary from your child’s name to your name. Then, you’ll be able to pay up to $10,000 towards your student loans.