No passengers will not be allowed to leave the airport due to a small-time left between the two flights. However, if a flight gets cancelled then you can get out of the airport and stay in Dubai.