Can a security cam replace light control motion detector?

I have a motion detector activating soffit lights. The detector is already wired on a mount that would be perfect for a cam. So I’d like to replace that motion detector with a cam so that it would take place of the motion detector. Is there a way to do this?