Many people learn to code by themselves without any need for a degree in CS. However, CS is not only coding. I think this is one of the biggest misconception about Computer Science. In a CS degree (if it’s good enough), you will learn about the different field of CS such as software engineering, computer networking, artificial intelligence, operating systems, database systems, computation, human–computer interaction, computer graphics.
Therefore, CS degree will help develop problem solving and critical thinking skills, so it will definitely help you to solve real world problems.