The phrase "get in an accident" usually means to have a car accident.
"Have an accident" is another way to express a car accident:
I had an accident.
But this phrase can also be used for a lot of other situations, including peeing in your pants. But the phrase "get in an accident" almost always means to have a car crash.