pretty much all children books in China include under Chinese characters also pinyin, exactly because it's used to teach children
i would not say pinyin didn't play role in increasing literacy levels, but it was one of the factors together with simplification of characters and wider availability of education