Code of Criminal Procedure Act, 1973
241.Conviction on plea of guilty.-
If the accused pleads guilty, the Magistrate shall record the plea and may, in his discretion, convict him thereon.