Yes, if the policy's benefits for your spouse or children expire upon maturity, you must immediately repay to your GPF account the lesser of two amounts: either the total amount you originally took from your GPF for that policy, or the total amount received from the insurance company.
Source: GPF Rule 25