If you borrowed someone else’s car and got ticketed for no insurance, you (not the owner of the car) will have to appear in court. You may have to pay fines, be denied your driving privileges for some time, get an increase in premium, and accumulate extra driving points, up to suspension of your license.