Can a college student who earned $3100 on box 1 of his W2 put all $3100 into a Roth IRA for TY 2024?

Student can be claimed as dependent on parents' tax return.