Thoughtcrime became a law in the US in 1996. There was a lot of discussion around alt.sex.stories USENET group by the time. Even if you are not harming anyone, mere act of a creative work could be a crime.
Briefly, and was recognized as unenforceable. As evidenced by the fact that repositories of alt.sex.stories still exist to this day and still host many, many example of erotica containing children, both old and new.