No it will only unroot you. The only way to get rid of a ROM is to install another one or restore your nandroid backup. Assuming you made a nandroid backup to begin with.
Essentially doing a factory reset will just get rid of all the apps and data. The rom is read only memory so it will not be affected. I think the same applys to su access. Did you do a nandroid backup before flashing the rom?