No. Unless it involves incestuous relations, an extramarital affair is not criminally punishable under California laws. It is also usually not an acceptable argument against another spouse in most divorce cases, because California is known to be a no-fault state.