Yes, it does matter.
It's actually pretty simple, if you think about it (I think so anyway). The wider the beam, the larger the area of light that will be reflected, thus...the softer the light. So if you are bouncing out of an umbrella, you will want a zoom setting and flash position that will just fill the umbrella...but if you zoom too tight or put it too close, then you won't be using the full area of the umbrella.
The same applies when you are bouncing off of walls or ceilings. A larger spread of light from the flash, will create a larger light source (surface), thus, a softer light on the subject.
But, be aware that as you spread the light out, you need more power to cover the distance to the surface and back to the subject. So when you need all the power you can get out of your flash, zooming the head out may help.
Now when shooting the flash directly at your subject, zooming the head will not change the softness of the light, but will obviously change the spread (area) that it will cover. So what you use, will depend on your shot. If you are just lighting up a single person, and don't need the light to cover the area around them, then use a tighter spread. But if you are shooting a group, you'll likely want a wider spread. You could just always use a wide spread, so that you don't have to be precise about the angle of the flash, but that will cause the flash to work harder than it needs to, causing longer recycle times and killing the batteries faster.