In theory, absolutely! In practice, whether you leave the airport during a layover is tricky. If you're traveling domestically, you won't have to worry about customs or visas, but you're still leaving the airport, and returning gives you zero priorities over other passengers who are checking in on that flight.