Yes, that's the rule for possession, and yes, theoretically you should be required to have possession before you hit the pylon...but is that what the rule says. I mean, is there somewhere where it says "If you hit the pylon with possession of the ball, it's a score", or does it just say "If you hit the pylon, it's a score."
I could see them wording it either way.