Of course it would.
There is no rule that the nose can only grow upon lying.
If the nose would not grow, P would be lying, and therefore the rule implies that the nose grows; contradiction.
But in actuality, the nose grows and P speaks the truth. I see no contradiction here.
It is logic that must punish P for saying such a foolish, reckless thing.