Can my parents claim me on their taxes if I was 18 and in high school part of the year, but now I'm in the military?

I was 18 and in high school for 5 months of this year.  I went to boot camp in September of the same year.