Yes, you can leave airport during a layover. However, ensure you have enough time to pass through security upon your return before your connecting flight.