In theft, if you were prevented from an oustide source to do the crime, you will be jailed as if you did it. At least where I live.
Kid rape is the same, you don't have to do anything, if it's proven you were actively preparing for it, you get behind bars.