Being a generalist or a specialist

Hi everyone,

Been contemplating over this, my career pathway have me in a very generic industry and role, I am thinking of specialising in my field, however that takes time and lots of money. Wonder if anyone have any advice on me doing this.

Would specialising be worth my time and effort to grow my career?