Yes you can wage guerilla warfare for extended periods of time if the conditions are right - i.e. if you have local support of the population, and someone outside is getting you the guns to harass the official administration / occupants.
Now think about whether either of those conditions apply in a particular scenario, then remember you need both. Afghans obviously hated being invaded and helped "their guys", they also had Peshawar.
Now think about whether either of those conditions apply in a particular scenario, then remember you need both. Afghans obviously hated being invaded and helped "their guys", they also had Peshawar.