One would hope not. One would hope energy production would move away from such raw material consumption.
The UFP Replication tech in the 24th century certainly suggested that... aka, that they convert energy into matter.
That's why consuming all matter in one's star system (or all of them) seems ridiculous as a suggestion even.... because its completely unnecessary (even in real life without access to energy to matter conversion technology - but it REALLY isn't technically even needed to achieve the same effect).
Also, one thing people don't take into consideration is 'technical efficiency' (aka, Ephemerialization), the ability to produce more and more with less and less over time.
Even Buckminster Fuller stated that over time, you will perfect this method to such a degree where you will be able to create everything with virtually nothing.
That means as time goes on, a civilization will be able to find scientific and technical solutions that will allow it to produce abundance in material goods (whatever form it may take) in ever increasing quantities with less and less overall resources over time.
For example, there are numerous synthetic replacements for so called 'scarce' materials which can be produced in sustainable abundance with superior properties and much lower impact to the environment compared to what is used now... however, our current production methodology and ways of thinking are relatively outdated... and they conform to 'cost efficiency' and accumulation of profit rather than technical efficiency and problem solving.
A lot of the manufacturing plants are modified so that new technologies can be made with those older (or pre-existing) processes... mainly because this saves them money in the long run - plus it is also easier sometimes to just use what is already there (which is good if its viable).
However, a more viable method (or at least one beneficial for the long run) would be that every once in a while (say every 5 to 10 years or so for this day and age), existing manufacturing plants would have to be razed for their raw material, and this matter to be used to create new (state of the art) manufacturing plants using same area as occupied by previous manuf. plants so that we can upgrade more frequently with the times.
Molecular and atomic scale manufacturing technologies have been developed in 2015 and 2018, and yet we have no full fledged manufacturing plants based off those alone.
Heck, majority of manufacturing is not even 3D printer based (and that has been available as a technology for a long time now).
It just shows our socio-economic system is lagging drastically behind with most breakthroughs in science and technology.
If we had more up to date methods, we could catch up far faster and easily. Right now, we'd need a large push into that direction though.