No, as long as your switch connects back to the same router as the NVR does, you don't need to connect the switch to the NVR directly.
It looks like you have an NVR with V5 firmware, so you'll need to follow these instructions to add the doorbell to your NVR.
FYI - there's currently an issue...