Yes. You can travel to the United States with ESTA for medical consultations, treatment, or a health checkup.
Medical treatment is an allowed purpose of travel under the Visa Waiver Program, and each stay is limited to a maximum of 90 days.
If you plan to receive medical treatment or a health checkup in the United States, apply for ESTA.