But the question is why would you make it there.
The materials will be clearly far cheaper sourced from earth. You can probably make high quality steel on the moon but its not easy. You need to do prospecting on the moon, find what materials are where. You need to refine those sources into the right materials in the right amount.
You need to put a huge mining, refining, and manufacturing infrastructure on the moon at huge cost. And this is far beyond our current ability in robotics.
And 3D printing object of that size has not proven to be the best solution, there is a reason SpaceX builds Starship the way they build it.
And what does it save you? Why would you do it?
The traditional answer was, because launching from earth is expensive. But that very premise is what SpaceX Starship tries to overcome.
Once you have a fully reusable Starship System, having to launch a few more times should not be that expensive.
The infrastructure you suggest itself would require a fully working Starship system anyway. So why would we build that infrastructure on earth, then build the whole infrastructure again on the moon just so we can launch from the moon.
Additionally, all the other things that we want to send to Mars are on earth, including the humans, food, medical equipment and so on.
This simply doesn't make sense once you really think threw all the requirements end to end. SpaceX actually did think threw these things.
The only actually reasonable suggestion is that you could have some mining for water on the moon and then use a railgun to shoot it into earth orbit. But even the economics of that are very questionable and setting something like that up would likely require a working Starship system too.
Manufacturing on the moon simply makes no sense unless you actually want to create things on the moon. There are cool suggestions for that, see this company (who just got a NASA contract to study this further):
https://www.youtube.com/watch?v=9-RTBGnzNks