Yes, we did that in Germany and Japan AFTER we conquered them, replaced their governments with American officials, rewrote their laws, and hanged their leaders.
Its what we should have done in Afghanistan from day one.
What the hell are you talking about? In November 2001, George W. Bush changed the name of Operation Infinite Justice because only Allah could dispense infinite justice.
We NEVER took control of Afghanistan (never mind our real enemies Pakistan and Saudi Arabia), it has NEVER been US policy to govern that country, and the forces we sent there were laughably inadequate to that task if it HAD been our policy.
The best thing we can do after our defeat in Afghanistan is to get the hell out of their before any more of our people get killed.