I guess it is possible.
However, the orbit of Jupiter is very slow and wouldn’t account for the zigzag movement.
Jupiter could have pulled the rocks down the hills on Mars, though.