That's complicated, but yeah, you're probably denying them agency, especially if you decided that the NPC was lying after the fact. If, when the PCs were talking to the NPC, there was the possibility that they could detect that he was lying (and therefore infer that anything he told them was...