Yes, sometimes friction can act in the direction of motion. For example:- A car accelerates on the road only because the frictional force on the car due to the road drives it, i.e., the car would not accelerate if tires did not push against the road and the road pushed against tires. The force that accelerates your car is the static friction against your tires in the direction you are accelerating.
Posted by
shubham.krishnan