Well according to Newton’s first law of motion, a body will remain in the state of rest or linear motion provided that an *external force* has been applied. So no, a force doesn’t need to keep a body to remain in linear motion, because F=ma, during uniform linear motion velocity is constant, hence acceleration is zero, so F=0