It's not exactly the same. Nowadays, in the UAE, rather limited activities are exempt from tax (also referred to as qualifying activities), so in Iran the scope is broader.
However, you can still have your UAE entity provide headquarters services (tax-free in the UAE) to affiliated entities, e.g., in Iran.
To do business globally with an Iranian company, you might need to have intermediary entities in other jurisdictions.