If you're more likely to be caught due to the surveillance, logic would dictate that it's the greater deterrent.
I would hazard to say that wouldn't have happened had a police officer been stood there instead.
Some major shops in the UK have photographs of police officers on the door, because it reduces theft!