Nothing wrong with SO or even using an AI assistant as a jr. You should use any tool that helps you, but I still believe nothing beats practice and doing some manual coding to really learn and understand the concepts.
I still think one should reach out to a book first, then goes on to whatever method is best (asking a senior/mentor, SO, ChatGPT,...). It gives you more information and the material for better questions.