Of course it's beneficial..
Think about it a little, if you make peace with yourself resolng on moderation then you might just die or otherwise change before you ever do any bad thing.
It's a lot better than dying whilst doing the bad thing or to die having done the bad thing.
If you can moderate yourself it is to be praised and encouraged.
There is a canonical incident where a monk wanted to disrobe for a woman and was talked out of it as the Buddha promised him heavenly nymphs if he stayed in robes. This led up to the monk attaining Arahantship and The Buddha's promise with that being nulified, monk's name is Nanda.
Then the monks who were companions of Ven. Nanda went around
addressing him as they would a hired hand & a person who had been
bought: "Venerable Nanda, they say, has been hired. Venerable Nanda,
they say, has been bought. He's leading the holy life for the sake
of nymphs. The Blessed One is his guarantor for getting 500
Then Ven. Nanda — humiliated, ashamed, & disgusted that the monks who
were his companions were addressing him as they would a hired hand & a
person who had been bought — went to dwell alone, secluded, heedful,
ardent, & resolute. He in no long time entered & remained in the
supreme goal of the holy life for which clansmen rightly go forth from
home into homelessness, knowing & realizing it for himself right in
the here-&-now. He knew, "Birth is ended, the holy life fulfilled, the
task done. There is nothing further for the sake of this world." And
thus Ven. Nanda became another one of the arahants.