Yes. The law does not set any time limit between writing a will and the day of death. However, to be valid, the testator must be of sound mind (Articles 414-1 and 901 of the Civil Code). Therefore, a person cannot make a will after the opening of guardianship without the judge’s or family council's authorization, under penalty of nullity (Article 476 of the Civil Code). In the case of curatorship, the person can make a will alone, provided they are of sound mind (Article 470 of the Civil Code).