Some sins are public. Others are private. All will ultimately face the same judgment.
Public sins are obvious. They are either committed in front of others or they are exposed to the public. The consequences of such sins can be felt immediately. Public rebuke and condemnation often occur. Such sinners can lose their offices, reputation, and respect. Often visible sins must be treated severely in order to provide a deterrent to others. Those who commit sins publicly often face the consequences immediately and fully.
But there is a second kind of sin. These are secret offenses. Such transgressions can be committed behind closed doors or in our thoughts. While these sins are just as offensive to God, they may go undisclosed, perhaps throughout the sinner’s lifetime. Nevertheless, Scripture is clear: every sin will be thoroughly dealt with and punished. While some sins may lead to immediate consequences, others will not receive their full reward until the judgment. Nevertheless, we must never think we have somehow managed to sin with impunity, for God is wholly just. He would not be righteous or true to Himself if He overlooked our private sins. They are not private to Him. He knows them all! Better to confess and repent of our faults today, than to have them follow us into the judgment.