It can write you a function/method/script if you give it an outline of what you need but it's awful at anything remotely complex and everything it spits out needs to be understood by somebody so it can be checked.
It can save a developer time but it only replaces people in that one person can be more productive which is absolutely nothing new.
The reason for that is because it's not AI, it's ML. It doesn't understand anything.