I suppose this depends on the context. If there is a time where matter did not exist or can be defined as existing e.g. the singularity of the Big Bang then there is no way to verify this scientific fact. Similarly, if we imagine a higher dimension where matter do not exist, again this scientific fact cannot be tested and would not be relevant.
I think the real value of scientific theories and laws are not that they are permanent but that they are useful to us right now. Personally, this is how I feel about the Buddha’s teachings as well although some would argue that the Dharma is true and absolute whether in the past, present or future. Suppose (although very, very improbable) all beings are enlightened, does the Dharma still matter? With Metta.