Yes. Scanning only reads: a scan looks and measures, and nothing moves until you press Clean.
A cleanup moves files to the Trash, or the Recycle Bin on Windows, so you can drag them back out. Deleting permanently only happens if you hold the button until the LED fills, so a stray click deletes nothing. The exceptions, always flagged first: junk on external disks is deleted for good, because the Trash of the same disk would free nothing, and git worktrees leave through git itself.
On a Mac, a guard refuses to touch system folders, Documents, Keychains, Mail and Messages, the Photos library, iCloud Drive, other users’ folders, CleanUai itself and Time Machine, read-only or network disks, even if something asks it to. On Windows, it refuses the system folders, Program Files, .ssh, password vaults, Outlook data and network or read-only disks.