I was flying a 172 many years ago and the guy in the right hand seat decided to climb into the back to retrieve a map, as he climbed over the seat back his foot slipped and kicked the right hand control yoke fully forward, he then proceeded to fly into the roof but fortunately landed in the back seat not on me.
So maybe not illegal but not a very good idea me thinks !