This is exactly how very young children initially learn many things, though. The first developmental stages of writing are often drawing lines of squiggles that ape lines of adult writing, moving on to random collections of letters.
True, but my experience is with much older kids (high school), where the problem is more that they have no interest in coding, so throw some blocks together and hope the teacher doesn't know what's going on either.