I would be skeptical to say if the sanctions worked.
Did it stop Iran from creating a nuclear program? No.
Did it allow for a change in government? No.
Mainly the people who suffered most were the common people of Iran. The government in Iran took advantage of this situation to radicalize people against the US even more.