It’s not quite that easy, I’m afraid. I would bake the position keyframes and then place a null or other marker at the start position. When the object gets reasonably close to that position towards the end of the animation, select the keyframes after that point and delete them. Then copy the first keyframe to the end of the animation. That should give you a reasonable loop but there will be a slight hickup because the first and last keyframes are the same.
To get rid of that, go to the second-to-last frame of the animation, set a keyframe, delete the last keyframe, and move the keyframe you just created to the last frame.