Dubai is one of the seven emirates of the UAE, hence a UAE visa is valid for Dubai as well.