early 401k withdrawal for school project

My son attended an early college STEM high school. For his senior project (for a grade) we took money out of my 401k. The class was not a dual credit class, but was required to graduate. Can I claim the withdrawal as being for higher education?