I am a full time student in college, making roughly 20k/year, paying for roughly 90% of my own expenses (rent, utilities, groceries, gas,etc) can I file independently?

I have paid for all of my educational expenses as well, and have been renting an apartment with a lease that started in August 2024. My parents have agreed not to claim me as a dependent this year, can it be done legally?