ECU takes a few minutes at least to reset after you disconnect the battery, so if you're quick you won't have to do the
ECU learning procedure.
I can't remember if the radio code resets as soon as you disconnect the battery. It's quick to do though, so just make sure you actually have the code handy!