I'd like to step in here to say-- as a software engineer-- AIs cannot write complex applications yet nor is that the intent with AI systems like ChatGPT. AIs can do the very mundane in programming like setting up very basic three-tiered architecture code or perhaps even write deployment stacks but AIs have a long way to go before they understand the user's intent with superb accuracy.
However, even when AIs are built that can accurately understand human intent, the burden remains on the user to understand what the AI has produced. And the user takes all responsibility for the code thereafter. Put simply, if you cannot code, but want to code something... do the work and learn to code, please. AIs are not housemaids or carpenters.