Generally it's a better idea (cheaper in the long run) to run more cables instead of putting a switch at the other end, but sometimes it can make sense to do that.
I've had this in a shed for 3 years with no issues. Currently unavailable on Amazon but basically the same thing as the link above.
This is the second "switch" I've had in that location, the first being a true 5 port Poe switch (because I have power in the shed) but the Poe died on that after a year so I got this. I now have a conduit buried to this shed and could pull 3 more cables (powering 3 cameras and a WiFi AP) if I wanted, and if/when this dies that's exactly what I'll do. The runs would be around 150ft of eithernet for each device, and I'd need to upgrade the Poe switch in my house because I only have one port left on it, but again, cheaper in the long run because I'll have one less device that can die and need replaced.
Edit: I have a non poe nvr, if you're planning to plug in one NVR output into a switch, then use that to feed 8 cameras to the NVR idk how that will work. Issues I could see being the one port not being able to power 8 camera (may or may not be an issue, I have no clue) but more importantly the NVR may only be able to recognize one camera per port. Might want to test that out first.
Edit #2: I think Poe nvrs have a main Ethernet port for network access (the same as non-Poe nvrs) and in addition to that have 16 poe ports for 16 cameras. You could plug the main port into a switch to get network access, then that into the switch at your 8 camera location. Or something like that. That would get rid of the two potential issues I thought of in my first edit.