Generally, yes — Islam teaches that a person who sins privately and is then forgiven by Allah should not go announce it to others. The Prophet said that all of his followers will be forgiven except those who commit a sin openly, or sin privately and then wake up and tell people, 'I did such-and-such last night,' when Allah had concealed it (Sahih al-Bukhari 6069). Publicizing your own sin does several harmful things: it can normalize the sin for others, strip away the natural shame that helps guard against repeating it, and turns something that was between you and Allah into public spectacle for no real benefit. This is different from seeking help — confiding in a trustworthy scholar, counselor, or close friend for guidance in overcoming a struggle is encouraged and often necessary, especially when a sin is difficult to leave alone. The principle is about discretion, not secrecy for its own sake: Allah covered your fault as an act of mercy, and the appropriate response is gratitude and quiet change, not turning it into a story.
Q&A · Repentance & Sin
Should I keep my own sins private instead of talking about them openly?
References
Sahih al-Bukhari 6069
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.