The process of working with Generative AI is iterative. It starts by defining the prompt and then working with the tool to further elaborate and fix the output. When working on a complex program the first output will likely not be sufficient.
Generative AI can be used as a reference both before and during the project development process. The AI can usually suggest technologies for your project and explain important concepts.