Machines are already writing the code since decades. That's what compilers do. What happens now with Copilot and ChatGPT is just raising the level of abstraction further - right now with more hype than success, if I may add.