Your luggage has to clear customs (not immigration) at your first point of entry to the USA. If you have an onward flight you must check it in again.

In the simplest terms, Immigration is for people, Customs is for objects/things. Both are applicable at your first point of entry to the USA.