Yup

I don't know the exact technical working, (and this explanation could be completely wrong) but you can think of it as when you flash a ROM it gets written to a a chunk of memory that gets used like the CD that comes with Vista. A hard reset is like using a CD to reinstall the OS on your computer. (Does that make sense

)