It writes code in the same sense that it writes sentences. Sure, it could look normal with functional syntax. But whether or not it functions is a different matter. People get these AI to write convincing nonsense all the time.
It’s a great tool to help you get ideas, but it’s not a substitute for an actual thinking individual. Yet.