If the intrusion took place, Turkey has every right to defend its airspace. Same thing happened in 1980’s when Soviet aircraft entered Pak airspace and PAF F-16’s shot down 8 of the intruders.
However, I believe Turkey should not be part of any conflict. A few years ago, a map was released in a predicted scenario in a US Naval Academy. It predicted redrawing of the Middle East map. They wanted to divide Iraq among Shias, Sunni and Kurds..and it happened..with ISIS retaining Sunni areas, govt in Shia areas, and Kurds in their autonomous region. It predicted breakup of western regions of Pak, which couldn’t happen as Pakistan’s military and civilian institutions proved too powerful and stable for that too happen. They also predicted breakup of Kurdish region from Turkey on which Turkey protested back then, when the map was published. I believe all of this is to entrap Turkey, Turkey should learn from our experience. We fought on behalf of western powers in Afghanistan, look what we had to go through. Now we are out of that quagmire, after sacrificing a lot of resources and human lives. It took almost 3 decades.