yes you are correct, when you realign it, ie dissconnect the battery, you need to reconnect, then leave ignition on with engine not running for a few mins to allow the realigning to be completed.
(if not sure 5 mins is plenty, but you may here a high pitched sound during realignement).
NOTE: this should be done on a COLD engine.