ESP32-CAM trigger

Hello,

I recently ordered an ESP32-CAM and I was wondering if I could activate the camera module to take a picture and save it to an SD card from the output of an PIR sensor. Is possible? If not are there any other alternatives I could get my hands on?

Thank you in advance!