If the line of the net force passes through the center of mass of the object, it will cause only translation. However, if the line of the net force hits on the object along other directions, there will induce the moment of force or torque which leads to rotation.