Yes, and
results were not good. IMHO you have several problems:
1) ChatGPT learns from the Web, but doesn't take in account how old the information is. So it can use a deprecated API and/or overlook simpler/faster ways of doing things.
2) If it doesn't work, you will have a hard time getting ChatGPT to debug its thing, and possibly an even harder time finding someone willing to debug it for you.
3) Unlike a human, ChatGPT doesn't read minds. It won't tell you that what you ask can be done in better ways, possibly using native functions that you didn't know about, or a script/plugin that already exists.
4) Fundamentally, an AI is a computer. So, "stupid question, stupid answer" is guaranteed. The people who are by trade skilled into asking intelligent questions to computers are called "programmers".