Yes, when the controller is rebooting after upgrading with the new code, the APs disconnect, and perform LWAPP discovery (even when there's no Primary/Secondary/Tertiary configured) to find another controller. If one is found using normal LWAPP discovery mechanisms, they'll join. If AP Fallback was enabled, they'll go back to the original controller once it's up.