Yes, you can. But you must have a valid visa depending on your nationality. European citizens are exempted from visas and can get easily stamped to leave the airport.