Yes, for sure.
For me, there are two related but quite different goals here.
One is to detect "threats" (trespassing, either by a vehicle or a human), and take some action (alert a human, sound an alarm, close a gate, etc).
The other is to take pictures of the "threat" for later use during...