In theory it would be possible to create a safe driving car that would avoid unsafe roads, conditions, mental state, amount of driving, driving practices, speeds, distances etc. But a lot of the time it would just end up not being compatible with the road system and owning a car. And it still wouldn't totally prevent an accident, especially not caused by anyone else.