Certainly, CSAM is against the law. Around the world, it's criminalised less than Global agreements just like the UN Conference over the Rights of your Child. Rules differ a little, nevertheless the Main concept is identical: children need to be protected from exploitation, and CSAM is often a direct violation of their legal rights and security.