Not completely true. I tried a few examples and the code gave compilation errors. As the libraries have updated from the time ChatGPT was trained on the code samples. As it has Limited knowledge of world and events after 2021.