My son is a full-time student from Jan to June, start working in June, and earns over $50000 in 2023, he is 23 at the end of 2023. Can we claim him as a dependent or not?

My son is a full-time student from Jan to June, start working in June, and earns over $50000 in 2023, he is 23 at the end of 2023. Can we claim him as a dependent or not? He do not need to pay tuition, just need to pay for the room and board, and we paid that.