Roth IRA contribution 2023

I already submitted my tax return and got the money back from the IRS. I did not add any amount for traditional and Roth IRA in my tax return because I was not getting any tax break. Can I still contribute the money to my Roth IRA for 2023 or I can contribute only for 2024? I believe the limit is $7500 for 2023 and $8000 for 2024 if you are over 50 and filing as married. Is that right?