529 Defunding as Child attends school

Yes, the earnings portion of that distribution would be taxable but there’d be no 10% penalty.

See p. 54 of pub 970: