Yes, switches are persistent.
Something to remember, the magnetos being on does not necessarily mean that the engine is running. As magnetos are self energizing, with that switch on even with the engine off, opening the door and getting into the prop area is very dangerous - a strong gust of wind or pushing on the prop could cause it to turn over a few times.