Yes, if you have an Emirates visa that is valid for both the entry and the exit even if it through the airport or the seaport you can have the same visa used.