Yes.
But if that switch is going to be connected to the router, then make sure you switch that camera to a static IP instead of DHCP because if the camera is set to DHCP, the router will potentially assign it another IP address, and then you are screwed LOL.
And then follow that procedure for the remaining cameras and being sure you don't give the same IP address to two cameras.