Could Self-confessing of guilty of an offence lead to successful prosecution and conviction?

Being guilty should not take the court so long to hear and rule on such a cases
Being guilty should not take the court so long to hear and rule on such a cases