Yes, the ball will also rotate if there are friction force between balls when collide. This is just an applet try to help student to understand basic physics (how to transform a 2D problem into two 1D problem).