Must the Nexus 4 be rooted in order to install custom ROMs?
You don't need to root to install ROMs on a Nexus 4. Just unlocking the bootloader and installing a custom recovery (Such as TWRP or CWM) through fastboot is all you need to start installing custom Android builds.