Hyperspace would not be conductive to this sort of thing - it's too fast, and you are effectively sensor-blind while in hyperspace. No one can see you coming, but you can't see them either.
SW hyperspace jumps have to be very finely computed, and they are hard to do with fine control - many times in the EU we see ships that don't compute their jumps very finely come out kilometers away from where they wanted. This would make the maneuver difficult to accomplish.
That said, the range of SW turbolasers is greater than standard visual range, and their targeting computers are very good (at least at targeting large ships - the typical targets for turbolasers).
In the EU we often see Star Destroyers (and occasionally other capital ships) begin firing within seconds of exiting hyperspace, given just enough time to identify their targets.
In short, yes and no. It wouldn't be effective in single-ship combat or as a tactic for a surprise attack at the start of combat. It IS, however, a common tactic for large ships when attacking a fleet with a known (or strongly suspected) location or a planetary fortification. You aren't going to jump into hyper to attack the ship that just opened fire on you, but you WILL begin firing as soon as you come out of hyper when you're assaulting a planet or stronghold.