Yes, you can leave airports during layovers. Just be sure to follow all airport safety rules and consider your checked-bag departure policies.