Get your taxes done using TurboTax

Yes, time spent away for educational purposes is considered a temporary absence and you can still count that time as living with you.  

IRS Pub 501 (page 14):  Temporary absences. Your child is considered to have lived with you during periods of time when one of you, or both, are temporarily absent due to special circumstances such as: Illness, Education, Business, Vacation, Military service, or Detention in a juvenile facility.

https://www.irs.gov/pub/irs-pdf/p501.pdf