Is help from ai to code ethical?

I'm trying to develop a game by myself and some stuff are pretty complex, I'm somewhat a beginner so I get a lot of help from chat gpt for coding, do you think it's ethical?