Yes, you certainly can leave Abu Dhabi Airport during a layover. However, there are a few limitations and they depend on how much time you have between your flights. You don't require a visa if you're only passing through Abu Dhabi Airport, having the AUH Airport code. Also, a majority of nations will require a visa to exit the airport.