Nope, if I hide cocaine in your house the crime is mine. If person X send person Y unsolicited CP with the intention of calling the police on them I am pretty sure X is committing a crime.
To be more precise, in most jurisdictions, there's strict liability for possession of child pornography. Which means that mens rea, or even awareness of the crime, is not required.