Education

I have a follow-up question regarding this that I want clarified.  I was just looking at a similar issue with my son's 529 account.  I requested a distribution from his 529 on 12/30/2019, and paid his college on 1/5/2020.  Do I need to pay the tax and penalty on that distribution in this situation, even though it was just a week between the 529 distribution and the payment to the college?