Upvote:4
You always collect your baggage before Customs, but after Immigration in the US (most other locations too).
Customs, Agriculture, and possibly other Federal or State Agencies may chose to inspect all your belongings, include your checked baggage.
Depending how CPB chooses to staff and enforce, the distinction may be very subtle with "Customs" being handing over your Declaration.