Yeah, lots of people do it. A dash cam with parking/impact mode is the easiest way to catch vandals - something like a Viofo or Nextbase with 24/7 parking recording. They’ll record when someone hits or bumps your car.
Make sure you hard‑wire it to constant power so it works when parked. That’s the simplest and most reliable setup.