Yes, you can leave the airport, but you may not be able to reenter the terminal until the TSA security checkpoint reopens (TSA checkpoint hours vary by airport). Please check the TSA hours for your specific airport before exiting the secure area.