That depends on the accuracy of your endstops. If you trust them, then yes this will get you back on both axes. Bear the following in mind:
1) you don't know what speed will be used to get from home to the object position. I believe KISSlicer does not put the speed on every G1 command, but rather in a separate G1 command at the start of a block of G1 commands. Your head may crawl slowly back to the object.
2) There may be extrusion when moving from the origin back to the object, but this is probably going to be easy to clean up.
3) Your object will be missing a bit of plastic from the point of failure to the point where the print resumes.
Good luck