Remember that if you are flying to Cancun, then you most likely are coming on an international flight and MUST go through immigration and customs. If you are connecting flights then you most likely getting on a DOMESTIC flight and must go to the domestic flights terminal.