Mister B,
Yes they did.
Iran ended up with Lots of previous gen MiGs and SUs, including Frogfoot, MiG25, 27 and 29. I seem to recall some transports and helos too.
Iraq flew a lot of their MiGs and SUs to Iran in '91, which Iran grabbed and never gave back.