Yes, they are, and you've experienced why. Generally speaking, stocks that pay dividends will be better investments than stocks that don't.
Here's why:
1) They're actually making money. They can finagle balance sheets and news releases, but cash is cash, it tells no lies. They can't fake it.
2) There's less good they can do with that money than they say. When a business you own is making money, they can do two things with it: reinvest it into the company, or hand it over to you. All companies must reinvest to some degree, but only a few companies worth owning can find profitable ways of reinvesting all of it. Having to hand you, the owner, some of the earnings helps keep that money from leaking away on such "necessities" like corporate jets, expensive printer paper, or ill-conceived corporate buyouts.
3) It helps you not freak out. Markets go up, and markets go down. If you own a good company that's giving you a nice check every three months, it's a lot easier to not panic sell in a downturn. After all, they're handing you a nice check every three months, and checks are cash, and cash tells no lies. You know they're still a good company, and you can ride it out.
4) It helps others not freak out. See #3. That applies to everyone. That, in turn means market downturns weigh less heavily on companies paying solid dividends than on those that do not.
5) It gives you some of the reward of investing in good companies, without having to sell those companies. If you've got a piece of a good, solid, profitable, growing company, why on earth would you want to sell it? But you'd like to see some rewards from making that wise investment, wouldn't you?
6) Dividends can grow. Solid, growing companies produce more and more earnings. Which means they can hand you more and more cash via the dividend. Which means that if, say, they reliably raise dividends 10%/year, that measly 3% dividend turns into a 6% dividend seven years later (on your initial investment). At year 14, it's 12%. Year 21, 24%. See where this is going? Companies like that do exist, google "Dividend Aristocrats".
7) Dividends make growth less important. If you owned a company that paid you a 10% dividend every year, but never grew an inch, would you care? How about 5%, and it grows only slowly?
You invest in companies, not dividends. You invest in companies to make money. Dividends are a useful tool when you invest -- to gauge company value, to smooth your ride, and to give you some of the profit of the business you own. They are, however, only part of the total return from investing -- as you found out.