I would and I have, but you can't always blindly trust what it says. It's better to ask it to explain in detail the code it produces, so you can really learn and also as a safeguard.
In Spain people leave carts around too, but they either manage to retrieve the coin without other cart or they use a keyless method.
TL;DR: I have a trick to grab carts without leaving a coin or any placeholder in the cart, but people are such pieces of shit that I still always return the cart AND chain it up, because the next person who grabs it with no coin may just leave it anywhere.
Backstory:
Over 15 years ago, while I was working for a hypermarket chain for the summer, I found out a coworker was using those old can opener twist "keys" to get carts and then pull the key out right away sideways. My parents actually still had a couple of those at home that I grabbed for myself, and my dad later used them as a template to make more of these "coinless-keys".
It's Python what ChatGPT has helped me from almost zero prior knowledge, and I've managed to create a (probably shitty) script that works with OpenAI's API, uses classes and functions and can do things like recursively summarizing a text until it's below a specific token count, among several other things. As time went on, I required less help and I could implement more changes on my own.
I had prior (non-ChatGPT) Bash, PowerShell and BATCH knowledge.
It's true that ChatGPT has bamboozled me several times with wrong code, but unless it's something too complex, it get what I need in a few tries. For more complex stuff I have to use smaller more specific queries and in some cases I still Google things, but it's usually my last resort.
In any case, I frequenly ask ChatGPT for a detailed explanation of what does the code do, mostly because I want to clearly understand what I'm using, and it helps me learn new coding/scripting stuff.
I prefer 1000 times ChatGPT than asking in forums, specially for coding questions.
I can get multiple answers in a minute, multiple replies for the same question and do as many follow up questions as I please without having to wait patiently for an answer.
I still don't know how I managed to learn PowerShell on my own using Google only.
There's a wider collective on Tumblr to make fun of, but...