No, maternity claim will be valid only when at the time of delivery/hospitalisation you are covered under the policy where as in your case, once the employment cover is no longer there, your premiums will not be paid to the insurance company (there will be pro rata adjustment of premium). Since maternity cover is also not available individually but only in a group policy cover, if the new employer (if any) has a maternity coverage benefits, then you can claim for it.