Oh yeah, sure.
I remember when the international law stopped the US from invading Irak on false premises.
Or when that same law stopped them from toppling governments abroad to put friendy regimes in charge, like Pinochet.
Such a marvelous thing, the international law.