[1] Jurisdictions vary wildly in how they prosecute this but many seem to have funny age combinations where e.g. a 13yo sending an explicit image to a 14yo means the 13yo can't be charged for producing CSAM but the 14yo committed a felony by possessing it. Some jurisdictions have charged people for sex trafficking themselves in these situations. It's all pretty insane if you ask me.
Edit: Worth pointing out that the organizations that push hardest for legislation like this (mostly christian fundamentalists) also care the least about these side-effects, because sex before marriage is a sin and ought to be illegal anyway. A conspiracy theorist would hypothesize that these side-effects are actually the intended main effect for those groups.