You can back up messages on an iPhone to your iCloud account, or sync messages from your iPhone to your Mac.
You can use Notes on iCloud through your iPhone, iPad, or Mac, or in a browser using iCloud's website, to create, edit, and ...