Claiming a dependent child this year for last year

I want to know if I could claim my dependent on my taxes that i will file on 2023. I did not claim him on the 2021 taxes because I did not know I could since he was working for part of that year. However, this year he IS NOT working and is a full-time student.