Would be super interesting if this holds true for 'copying out' code as well... it's all the edge case handling that can get boring to re-type out without context / comments...
It does hold out! Here is a link to my research on retyping code [1]. To summarize my findings, students that regularly completed typing exercises earned higher course grades and submitted less erroneous code.