Yes, no matter that you only transit through the USA, You still must submit an ESTA
application if you are only transiting through the US on your way to another nation. While
completing the application, there is a transit-related question that you must check the
response to.