From the booklet of Rabbi David Shalom Naki, shlit"a: a son who guards his eyes from forbidden sights should explain this to his parents and not forgo his practice. Rabbi Shimon bar Yochai and the Rambam taught that Torah on the heart, and a mind broadened in wisdom, remove hirhurei aveirah.