Nope, that has nothing to do with the issue, that's a parable about forgiveness.
Is there anything creepier than using the Bible to explain why child molestation isn't really all that bad?
Try reading in context sometime.
Considering the fragmented way the Bible came into being, "context" varies from verse to verse.
Here is the text of Matthew 18:6:
Whoever causes one of these little ones who believe in me to sin, it would be better for him to have a great millstone fastened around his neck and to be drowned in the depth of the sea.
Now, the word that's translated here as "sin" is actually "skandalizo" (Greek): to “scandalize”;to entrap, that is, trip up (figuratively stumble [transitively] or entice to sin, apostasy or displeasure): - (make to) offend.
So I'm sorry, there is no "context" about that verse that makes it any less about scumbags who would mess with kids.