ChatGPT creates a bubble around your reasoning. If you discover hallucination it tries to correct itself, but most often it just creates different nonsense.
If you are not very well-versed and believe you understand it you could fall for it.
If you program you at least can try out and give feedback till it finds a solution that works. However this is not better than those programmers who introduce a lot of security issues.
ChatGPT is at best for finding ideas which are often bogus but could inspire you to useful ideas (a form of brainstorming) and at worst just useless or even dangerous.