Which I am sure will be a real comfort as his ship gets torn to shreds. Fire is fire, and if you get between the firer and target, expect to get hit and hurt.
Although not the target, and therefore under a much lower volume of fire, you should still be careful when undocking during a fight situation.
I have seen the station itself take out craft on several occasions, and the volume of fire is quite impressive, I wouldn't try and get between the station and anyone firing on it. The path of the weapons is fairly easy to see, however, and relatively easy to avoid, especially in a smaller ship, but it is not "Safe" by any means to be in the middle of a firefight. If you have undocked, then you don't really have a choice as you only have a limited time to leave - same if you have already asked for permission to dock (although I don't think you get security after you if you fail to dock in time provided you aren't actually inside the station when time runs out.)