Disclaimer: I haven't been in, nor do I plan on having an accident. That said, this has always been a question of mine.
Let's say I'm flying a little Cessna or ultralight around Ohio. Maybe the wind is stronger than expected aloft and I run out of gas before making it back home. Clearly I need to put it down on a road or field if I can.
After this happens, does the FAA revoke your certificate?