It depends on the context.
If the change in distance causes a jump that is still considered to be low difficulty in relation to the entire map it is often a good idea to forgo distance snap. The purpose of doing so can not only be visuals but also (and I consider this more important) readability. These 2 go hand in hand a lot of times but generally speaking if you can improve readability then do it.
Especially on Hard difficulties (and ofc lower) you need to be careful with it as the resulting jump might feel more impactful for the player. You shouldn't force small spikes just to get better visuals. In many cases, doing such small jumps for better visuals also does rather hurt the readability if distance snap is used for the most part of the map.
That being said, on Hard diffs (and Normal to some degree) you can always consider slider leniency as well and potentially use a bigger spacing if the leniency makes the actual jump smaller without creating a spike.