Commentary for Kiddushin 60:5
ואם אין אתם עוסקין בתורה אתם נמסרים בידו שנא' לפתח חטאת רובץ ולא עוד אלא שכל משאו ומתנו בך שנאמר ואליך תשוקתו ואם אתה רוצה אתה מושל בו שנאמר ואתה תמשל בו
This may be compared to a man who struck his son a strong blow, and then put a plaster on his wound, saying to him, 'My son! As long as this plaster is on your wound you can eat and drink at will, and bathe in hot or cold water, without fear. But if you remove it, it will break out into sores.' Even so did the Holy One, blessed be He, speak unto Israel: 'My children! I created the Evil Desire,<span class="x" onmousemove="('comment',' Thus Cain defended himself for murdering Abel by arguing that God himself had implanted the evil desire in him (Tan., Bereshit, 25, ed. Buber, p. 10) . It is generally understood as man's evil impulses. Occasionally it is personified, as here, and identified with Satan (B.B. 16a) ; on the other hand, in Ber. ');"><sup>12</sup></span>
Daf Shevui to Kiddushin
I do not believe that this source is saying that those who study Torah will have no sexual urges—rabbis do not seem to believe this at all. Rather, study of Torah, of how one is to act in the world, reflecting on what it means to be human, all of this should, indeed must, lead to an inner transformation that allows us to have control over our lives. The baraita reads the famous verse from Genesis, stated to Adam after he ate the fruit of the tree (and the subject of one of my favorite books, East of Eden). Sin crouches at the door, but with proper reflection on Torah, humans can learn to act in a decent, moral way.