If you drive to court without insurance, then you can be ticketed for not having the insurance at that time. As for whether you can be ticketed for not having insurance at the time of the accident: if it comes up during the court hearing, then yes, the court can at that time impose an additional sanction. It may not come up, but if it does, you could have problems.