The US does this all the time with its monetary sanctions. That's why sanctions against Iran and Russia are quite a big deal for these countries. Even nations that don't really want to take part in those measures are affected because their national banks have to do business in the US or with US banks and businesses.