Yes that will help in some situations. But there are other situations off-road where you could still hit your computer in a crash. One example, if you tip over sideways in a rock garden, its possible for your computer on an out front mount to hit a pointy rock that the wheel wouldn’t block. Another that comes to mind - sometimes in a hard crash your bars twist, then all bets are off.
Also - out front mounts would make it more challenging to mount a MTB style number plate.