With LLMs that’s not a terrible approach. They are generally very good at translating between programming languages.
Yes, this is why I believe LLMs will (finally) allow us all to make the move to purely functional languages.