What happens if you unplug a security camera depends on whether it has a battery. If it does, it’ll continue to operate normally until that battery dies. If it doesn’t, it’ll stop recording. However, the past footage will still be available on the cloud or a hard drive, depending on the storage system you’ve set up.