Indeed, and you'd hope that AVs would do this. Notably the car which caused the initial incident didn't do this, they hit the pedestrian then drove off!
Like the fact that a cyclist on the other side of the road is a hazard to you, not because of the cyclist, but because an impatient driver stuck behind them is likely to pull out suddenly round the cyclist, forcing you to brake.