Speaking as someone who has come to my tech career later in life (and after another career), this is absolutely correct. All industries have their problems: software is no exception, there are things that could be better. There are bad days, even bad months.
But at nearly 6 years in I still wake up every day amazed that I get paid as much as I do to do this thing that I really enjoy. With overall reasonable hours. Without having to deal with the general public. Considered an asset despite the fact that I cost so much and write bugs. And with people banging on my door constantly to get me to work for them. I feel extremely fortunate.
You will always be mistreated by someone if you work for a corporation. We have it easier than almost everybody else, really.