A video security system? A webcam? There are some with integrated movement that can be controlled using your phone.
If you need to move the camera around, set up the illumination, you probably need an assistant or get a robot.
On a normal DSLR, the answer is NO without a custom made solution. The answer is simple, the batteries run out, even with a DLSR connected to the grid system, in case of a blackout there is no way if it will reliably turn on.
The memory will get filled, but of course, you could connect it to a PC and save it there. Or even you could manipulate the PC using a remote control system on your computer.
But this is a bit naive. There are security or webcam solutions that will be more reliable.