I drove to town this morning and got an accident.
In English you don’t ‘get‘ an accident, you ‘have‘ one. If you say you drove to town and got an accident, it sounds as though you bought an accident, perhaps from a shop that sells accidents? Depending on the type of accident, you might need a very large shopping bag!
Admittedly the context of your sentence makes meaning clear, but if you want a high score for vocabulary in IELTS writing, try to use stronger collocation: