Yes, if you will be cancelling your visa for at least 2 weeks before your visa expiration, you are entitled to a “30-days” grace period.
However, grace periods are determined by the Immigration Office
hence there is no assurance that a 30-day period will always be granted.