If your experience of learning to code is as passive as scrolling, you're educating yourself incorrectly.
Discussion
I'm suspecting it is as pointless not passive, potentially... ultimately as pointless.
It depends on what you chose to create with your code.
If you write code to fork people's notes, yes, you've wasted your time.
If you write code that people use, then it's not pointless.