IMHO, the answer to this question is 'NO'. The United States both had and has no legitimate business in Iraq or Afghanistan. If we Americans were wise, we would deep-six both Iraq and Afghanistan and reallocate our limited vital resources to help Israel neutralize Iran's impending nuclear capacity. Now that would enhance everyone's security.
U.S. says working on initiative to de-escalate Syria fighting, with focus on Aleppo (Reuters)
from the article: Will the U.S. withdrawal from Iraq threaten Saudi Arabia and Israel?