You may get lucky and it'll work, but the tolerances for the pads are really tight so it might not. You can shim the rotor of whichever hub has the rotor more inboard to make it match if you really need to be able to swap without adjustment. Also if you have a rotor with considerably more wear you'll have to reset the pads somewhat when moving to the rotor with less wear.