"If the new sketch starts, so the analog pins will be back to default which is as input pins."
Yes. Stop there. Nothing else is needed.
"If the new sketch starts, so the analog pins will be back to default which is as input pins."
Yes. Stop there. Nothing else is needed.