Speaking exclusively with regard to US law:

I, an adult, am legally allowed to write whatever I damn well please.

If I write sexual content, you, a child, are not legally allowed to look at it.

Therefore my “pedophilic content” can not affect you unless you are already breaking the law.