Yes, ive done this using tinycam and a UVC camera and a Y otg cable, so usb camera can be powered same time as tablet, I used a Git2 actioncam as the camera, but could be anything.
if you integrate with Tasker, then all sorts of things could happen, I make the tablet play a siren sound, send...