The first time you root a Nexus 5, you must wipe the device in order to unlock the boot loader. And once a device is rooted, OTA software updates won’t install because the modified boot loader is detected. However, it’s still possible to get software updates for your rooted Nexus 5, and no additional wiping is necessary.