Starting and stopping a sketch.

PieterP:
While that's definitely true for UART and timer related initializations, all pinMode does is writing to the IO registers.
As long as you're not using an Arduino variant that does weird IO initialization before running, it should not be overridden, and it should work perfectly fine.

With the multitude of different platforms the Arduino system is running on, I think it is bad practice.