No the friction not opposes the motion but it opposes the relative motion.
Take the example of the block on block case if tried to pull the lower block then the upper block will also move if the statement that is given that 'friction opposes motion' then it should not move along with lower block but it is moving so by this we can conclude that friction opposes relative motion that's why the friction is making to move the upper block forword and on lower block the friction is acting backward so that there would be no relative motion between them.
FRICTION NOT OPPOSES MOTION BUT OPPOSES RELATIVE MOTION BETWEEN OBJECTS