Logging into iCloud on a Network Managed user account
Personally, I wouldn't add your personal iCloud account to a shared Mac. It can be done but you would need to set it up to not sync anything to the Mac and by doing that you are using iCloud in the way it was really designed to be used. Plus you would need to sign out each time for security. You would be better off accessing your iCloud account on a web browser.