No. You do not need to provide a hotel reservation or booking confirmation when applying for ESTA.
You can apply even if you haven't booked a hotel or decided where to stay in the United States.
The application may ask for your U.S. accommodation address or contact information. If you have already booked a hotel, you can enter the hotel's details.
If you haven't decided where to stay yet, you can enter "UNKNOWN" in the address field where permitted.
However, you may be asked about your accommodation or travel plans during U.S. immigration inspection. Therefore, it's recommended to confirm your accommodation details before departure.