Newton's second law states that the acceleration of an object depends upon two variables, i.e., the net force acting on the object and the mass of the object.
The acceleration of the body is directly proportional to the net force acting on the body and inversely proportional to the mass of the body.
Hence, an object will continue accelerating until the resultant force on the object is zero.