Can I use CloudKit to make a Chat Messaging section in app

how can I use CloudKit to make a chat messaging section in my app. I want users to be able to have private conversations with another user without it being public to everyone.
  1. I don’t want to use public database cause then everyone would see the 2 users personal convo.

  2. I don’t want to use private database because I want both users to be able to see the messages sent to each other in convo.

I normally would use Firebase with messagekit for this but I want to try with CloudKit .

any help would be appreciated
Can I use CloudKit to make a Chat Messaging section in app
 
 
Q