Indoor Cam and Away mode

I would prefer it only record when alarm is armed. Is that possible?