Really good question.
Although I cannot answer for 100% certain, I would think that military engineering experience would count towards your P.Eng, but that would have to be verified by the provincial body (in your case, I imagine the PEO)..
But I can‘t see why the experience gained wouldn‘t...