Upvote:3
Simple answer, Yes you can. Just make sure you get back to the airport before the flight. If your flight is in one ticket, then you do not even need to pick up luggage and re-check it in (thanks to @jpatokal for the reminder). Just go out, enjoy your time :)