I think the extensive use of sanctions as a tool of foreign policy against developing nations to influence their decisions has been counterproductive in the long term. The rise of emerging economies like BRICKS can be seen as a direct consequence of this flawed foreign policy approach. Every phenomenon has its own time, declining value of dollar and nations intent to reduce their reliance on US dollar as international currency for import/export of goods and services, unmistakably signals that there is challenging time for dollar in the future.
In my opinion, sanctions can have a certain impact on underdeveloped countries. If the level of development of the country is sufficient, the sanctions will simply lead to the restructuring of the economy to find a way out. In doing so, much will depend on the success of the import substitution policy. Politicians need to look for other ways to solve problems rather than impose sanctions.
In addition, not always other ways to solve emerging problems can do without the application of long-term sanctions. An example of this is Russia's current military aggression against Ukraine.