Yes, a tenant can apply to the court for relief from forfeiture.
If granted, the court allows the tenant to rectify the breach and continue the lease.