Your question is too broad. In chemical analysis, proper sampling and storage of the samples are important to obtain valid results. If you want to get an ideal sample, sample should be identical in all of its intrinsic properties to the bulk of the material from which it is taken. For food analysis, sample preparation, including freezing process, depends on the type of food. For lipid extraction, freezing process may permanently damage the tissues of food as a result of osmotic shock.
It depends on the targeted components you want to extract and how long is long for you, because storage time itself may become an interesting topic of research, say effects of storage time too. But as rule of thumbs, within one or two months of storage at -20oC your sample will still safe (for most active compounds of plant materials at moisture content below 5-6 %) as long as you maintained your sample in vacuum condition.