Yes. The moving bat is colliding with the ball and transferring energy from the moving bat to the ball.