No, the displacement is not necessarily opposite to the friction force. The direction of the displacement depends on the direction of the force applied to the object. If the force applied is in the same direction as the friction force, then the object will move in the same direction as the friction force. Conversely, if the force applied is in the opposite direction as the friction force, then the object will move in the opposite direction of the friction force.