If you are leaving from New Providence (Nassau) or Grand Bahama (Freeport) to the United States, you will clear customs before landing. If you are departing from any other island you will have to go through customs when you land in the United States.