The answer is maybe, depending oh the nature of your transit. According to the Emirates Visa Checker:
Transit - United Arab Emirates (AE)
TWOV (Transit Without Visa):
Holders of confirmed onward tickets for a max. transit time of 24 hours.
Visa is required for transit between Dubai International Airport (DXB) and Dubai Al Maktoum International (DWC).
A 96-hour transit visa can be obtained on arrival at Dubai (DXB), provided:
- transit time is at least 8 hours; and
- holding onward ticket to a third country; and
- holding a passport valid for at least 6 months from date of arrival.
Visas are only issued as a part of a transit package together with hotel accommodation and airport transfer (paid by passenger).
No visa will be issued on arrival to female passengers under 30 years of age, being nationals of Ukraine.
So, if your transit is less than 24 hours and you don't have to leave the international area of the airport, then you're good. If your transit is longer, then you are OK to get a Visa On Arrival, provided you book a transit package and you are not a young woman (under 30). If you don't have a package or are a young woman, seems you will need to apply in advance.