The Lord, in a July 1830 revelation, informs Joseph that his transgressions are not excusable and is commanded to "sin no more."
Section 24:1-2, Doctrine and Covenants, The Church of Jesus Christ of Latter Day Saints, accessed November 24, 2023
1 Behold, thou wast called and chosen to write the Book of Mormon, and to my ministry; and I have lifted thee up out of thine afflictions, and have counseled thee, that thou hast been delivered from all thine enemies, and thou hast been delivered from the powers of Satan and from darkness!
2 Nevertheless, thou art not excusable in thy transgressions; nevertheless, go thy way and sin no more.