That is the truth. In several senses of the word. I mean – One – Hamlet is messing with the play for knavish purposes. Two – the play, as described by Hamlet makes no sense. And Three – there is a knavish poisoning character in the play.
Hamlet, too, is a knavish piece of work and that is why we love him.