National Electric code doesn't have any such requirement. Not sure if California specifically does, but I don't know why they would as it wouldn't make it any safer and these rules are generally written in the name of safety. The only rule I know of that would be applicable is if you are more less than 1 1/4" from the face of the stud, you need a nail plate to ensure that a nail/screw doesn't go into the wire.