It heavily depends on the crime. Many crimes in fact have some sort of mens rea requirement that the offender intend for the action; this is classically the difference between murder and manslaughter. Crimes like fraud generally have a specific intent requirement, so if you didn't mean to commit fraud, you can probably get a not-guilty verdict.