A rasberry pi should work with zoneminder. You definitely would want to purchase external storage for camera writes.
Here is a wiki page with information on how to setup zoneminder with a raspberry pi - ZoneMinder Wiki - Wiki - Raspberry Pi 4 - Raspbian
Hopefully, that helps. Good luck!