ChatGPT only knows what it has learnt from it's source. StackOverflow being one of them. There will be a point when ChatGPT would start giving bogus/made-up answers to unseen problems, and people will turn to SO again. Also Google(search)