That should work provided you are selecting the offset you are adjusting and your G-Code has no other overriding offset in it, if the code has an offset that will be selected by running the code,

- Nick