No, it wasn’t.
Getting rid of dictatorships and nation building are two different things and to nation build, one must grind the existing culture to dust.
We don’t have the stomach for that so half measures got half assed results and alot of blood and treasure wasted.
Bingo! That is it in a nutshell.
We did much better in Germany and Japan post-WWII. The troublesome distinction, of course, is that Germany was not surrounded by Nazi states and Japan stood alone with its militaristic history - they were not surrounded by fellow-believers and it was much easier to crush those cultures to dust.
How to deal with Iraq after the shooting stopped was/is more problematic and, aside from the courage to take forceful steps, was perhaps beyond our current beliefs and skill set.