Yes, the ball always becomes dead immediately when a pitch hits the batter. If the batter is swinging it becomes a dead ball, strike.
Thus, if the pitch hits the hands (or any body part) during the swing, the ball is dead and the batter is penalized a strike.