 Yes, the Pakistani Taliban operates in Pakistan and seeks to overthrow the Pakistani state, but they're based in Afghanistan, just as the Afghan Taliban was based in Pakistan when they were fighting their insurgency against the US and Afghan government.