19 year old dependent??

Son graduated online high school in March.  Went to boot camp in April.  Turned 19 in June.  Can I still claim him as a dependent.  When I filled out my taxes it automatically approved him, but I’m not so sure.