Once the machine is set up yes, they can absolutely do that. That's how they're manufactured for the most part.
But the idea that any untrained, inexperienced person has the ability to physically setup, make jigs, indicate in said jigs, make a cad file, turn it into a cam program, load it into a machine, indicate in the stock, select the correct tooling and set it up, etc, etc, etc... It's a magnitude more difficult than 3d printing, and the machines that do that kind of fully automated work costs in the millions.