It worked to a degree in Venezuela. (Depending on what you think the goal was, of course...)
The goal was simply to display performative strongman machismo using the military (just like the missile strikes on alleged drug boats). It's a branding exercise for Trump personally (not even for the US as a whole). To that end, it doesn't seem to be working, especially with the Iran quagmire.