Joseph states in his History that he committed "many foolish errors and displayed the weakness of youth."
History, 1838–1856, volume A-1 [23 December 1805–30 August 1834], 5, The Joseph Smith Papers website, accessed September 7, 2021
I was left to all kinds of temptations, and mingling <with> all kinds of society I frequently <fell> into many foolish errors and displayed the weakness of youth and the corruption <foibles> of human nature which I am sorry to say led me into divers temptations to the gratification of many appetites offensive in the sight of God. In consequence of these things I often felt condemned for my weakness and imperfections;