Yes, select Menu > Settings > Application settings > Camera > Capture when phone is locked > No.