Unfortunately, I don't know if we have the causality to prove that the Afghanistan intervention has truly caused a safer world.
Removing the Taliban (still an ongoing project) is good for Afghanistan, but did this overall reduce the risk of terrorism globally?