Yeah, it's probably better to do it this way.
When a wheel is removed, then replaced, I usually find I have to realign the caliper to eliminate pad rub anyway.
Might as well do it as you describe, reset the caliper piston, give it all a good clean, fit new pads, refit caliper and realign...