Imagine, like so many folks, that you decide what you want to study when you’re just 18. You go to college, finish a four-year degree in mechanical engineering, and then realize what you actually want to do is get a job in coding. There are tons of benefits - pay, flexibility, personal satisfaction. It’s a no-brainer.
Be careful about deciding the best way to learn to code. Not all paths are equally effective. Self-taught developers and bootcamp graduates often struggle a lot to find their first coding job. In my experience, it’s much easier to get your foot in the door when you spend the time learning the CS basics that so many “crash courses” skip over when trying to get students to dive directly into the deep end of application code.