Personally I think it is okay to use AI to gain the knowledge on how to code as a crutch. Once you get the knowledge and learn from the assistance of AI, But over time, you should pick up the skill which will eventually allow you to do it by yourself for future projects.
This is just my take, but I think AI is a great tool to learn and build a good foundation IF you use it for learning.
There's also the OG method of googling and reading documents of previous coders' work or using YouTube content of learning how to code. Brackey YT channel has plenty of tutorials that will get you going for sure.