You can turn off specific iCloud features, or iCloud as a whole, on most Apple devices and on a Windows computer.
You should log out of iCloud on your Mac if you plan on getting it serviced or letting someone else borrow it.