The young will sow their wild oats

To sow ones wild oats is to commit youthful excesses or follies and, having commuted them, to mend one’s ways. Thomas Nashe wrote over four hundred years ago:

Youth ne’er aspires to virtues perfect grown
Till his wild oats be sown.