Ines Catholicism cites "chastity" as one of the seven great virtues, in fact, the opposite of the seven deadly sins.
My understanding of current teaching is that an exception to the "gravely disordered" thing is carved out for teenagers who don't know better, but the church also declares that once you have been instructed on the vile sin of self-pollution, you no longer have an excuse. I was instructed very early.