Ah so the csam detection doesn’t apply to incoming iMessages? (For now at least I guess- who knows about what Apple decides to do once this gets adopted).
The child protection part can be enabled for under 13s if they’re in a family account. If enabled messages app will try and detect adult images being sent and received and give a warning to the child, it can also let the parents know about it.