Yes, you have to clear immigration and customs at the first point of entry in the
country (US)
Additional notes:
You have to go through this even if you are connecting in US for a flight
into another country.
There is no such thing as International Transit area/lounge in US.