Yes, as long as we have terrorism, we will have a "perpetual war". Welcome to the real world. 

Apparently Trump's military advisers have suggested it's better to wage war with the terrorists in Afghanistan then to base anti-terrorist operations in the United States. Can you imagine the logistics of fighting terrorists in Pakistan with troops based in the U.S. or some other country that does not border Pakistan?