Possibly a factor, yeah. Pathing to offscreen locations unfortunately would be quite difficult to change, as this will cause it to deviate from the simulation, sometimes changing the result from what was expected. Enemies are simulated towards player position every tick during each simulation
I guess it could be possible to build it into the simulator, by randomizing the path at simulation time. Maybe even generating a few paths, and picking a random one that doesn't intercept any enemies that are dangerous at melee distance. Still, a bit more work than as such