Can I get a real estate license if I have student loans?

Yes, you can certainly obtain a Texas real estate salespersons license if you have student loans.
TREC only wants to verify that you are not delinquent on any of your student loan payments.
As long as you are up to date on your student loan payments, you shouldn’t have any issues.