What if you get into and accident and have no insurance or license but are getting them now before you go to court?

Well, you have made yourself look better for court but YOU didnt have it at the time of the accident. You will still get in trouble,