If you were violating the law before your crash occurred, and if the insurance company can prove it, this could harm your chances of winning damages, as discussed in North Carolina statute § 1-139.