You can leave the transit area (and airport) but you'll have to clear security and-or immigration again on your way back into the terminal. Citizens from certain countries leaving the transit area may need a visa. Please ensure that you comply with entry & visa requirements.