Well, would a patent derive enough revenue to justify the cost of procuring the patent? If so, yes, it's worthwhile. Otherwise, no, it's not.
A friend started a small company. He's up to thirty-five patents now (surprising, last time I checked it was only eleven). He sells under a hundred units per year.
Each unit sold costs around $250,000.
Without patent protection, the price would be much, much lower.
Of course, if the unit cost was more like $25,000, he might sell a few more, but his product is a specialized research instrument, so sales probably wouldn't even double.