The bible says otherwise about any vice.
The Bible says a lot of things.
Modern medical science generally views the condition as treatable, but not curable.
https://en.wikipedia.org/wiki/Pedophilia#Treatment
“There is no evidence that pedophilia can be cured.[13] Instead, most therapies focus on helping the pedophile refrain from acting on their desires.[6][77] Some therapies do attempt to cure pedophilia, but there are no studies showing that they effect a long-term change in sexual preference.”