It may eventually replace programmers, but as stupid as it sounds I would say "programmers have not yet replaced programmers"
Because coding has become more and more simple, most of the work is copying what already works and reshaping it to something new. We copy a lot of code from other code and from stackoverflow.
As programming became easier the demand for programmers didn't seem to decrease.
So if ChatGPT does the job of helping us find the code we need, that still would be anothee tool for programmers, and not a competitor, like package management, open source and stackoverflow have all been another tool instead of competitor in the market