Yes, you can have two iCloud accounts on your iPhone. However, linking your iPhone with one primary iCloud account is a requirement. This implies that limitations exist when having two iCloud accounts. You can use only your primary iCloud account for backup, cloud drive, and photos. Your secondary iCloud account, any iCloud account other than your primary one, will only work with calendars, contacts, and notes. Remember that the secondary account can also receive and send emails.