It goes both directions. Without the printing press, the rise of mass religious movements prioritizing literacy would not have been possible. But once the printing press was there, the religious movements pushed literacy forward faster than it would have gone without them.