My son was 18 for most of 2020 but he was in department of youth services for the entire year. can I claim him for 2020?

my son was 18 for 8 months of the year and in department of youth services for the entire year of 2020.  I need to know if we can claim him as a dependent for 2020?