Since Catalina the OS itself is in a read-only volume and everything else is separate - by default, respectively "Macintosh HD" and "Data" as exposed in Disk Utility. Strictly speaking, I think programs cannot change the OS or boot sector. The only thing I know of that can is a macOS upgrade itself, and it does automatically take a pre-upgrade snapshot for the ability to restore.