When it's time to deactivate an automation, you can choose if you want to finish the active automation or if you want to archive it.
Contacts within your active automation will be allowed to complete the automation.
Contacts within your active automation will be stopped where they are in the automation and will not be allowed to finish.