The writer's intention hasn't anything to do with what he achieves. The intent to earn money or the intent to be famous or the intent to be great doesn't matter in the end. Just what comes out.
Lillian Hellman, Jackson R. Bryer (1986). “Conversations with Lillian Hellman”, p.71, Univ. Press of Mississippi