Is It OK To Wear Shorts In Dubai?

Are tourists allowed to wear shorts in Dubai?

.