Can I claim my son who was a student and now in the military?

My son is 22 years old, he was a Part time College student from January 2022 to July 2022. He worked a full time job for 6 months. He then join the army military in October 2022. Can I claim my child as a dependent?