Today, could we do that? probably not. Not even - we don't have the basic bootstrapping tools in capacities needed, we don't have a wide group of people with the skillset.
So yes, you can make anything in a factory designed to make mostly anything
With specialization, especially like in the auto industry, you'll have one shop in mexico that gets an order 6 weeks ahead of time and has to deliver down to the day on the production schedule of ford to supply say a car headrest, and thats it. So, could we... today... maybe?
The cost of that reprogramming goes down over time, no?
It's called Learning Curve Based Pricing / Experience Based Pricing First popularized by BCG (Boston Consulting Group) and Texas Instruments
https://commoncog.com/c/cases/texas-instruments-learning-cur...
Helped Texas Instrument become what it is, and dominate the decade that it implemented this strategy against its peers.
The guy who invented it there, was who later founded TSMC Morris Chang
In some ways that attitude seemed admirable, but ultimately it didn't help the company win or keep consistent business. You'd have gaggles of smart people building custom prototypes but nothing scaled up. The customers couldn't see the vision of scaling their production there, or just saw that they could get better pricing going to factory which had already invested in the right special-purpose machinery.
That's what a factory is to me - ideally reconfigurable, but a place with capital investment for production. It's good to show kids what's behind the curtain but don't get it mixed up with a prototype shop.