Does restoring a TWRP backup restore everything, including the ROM?
Yes, your earlier ROM will be fully restored as long as you backup system partition as well since that's where the ROM resides. If you wants your apps and apps' data, then you should back up data partition.

Note: Backup feature doesn't backup SDcard's content. If you delete all the data of the SDcard you will not be able to restore it.