That's easier said than done. Programming is such a hard and specialized field, that very few people can be fully competent at it
and have another field of business expertise. There are two general paths to that:
1. Study CS in school, get employed as a programmer in an unrelated industry and attempt to absorb industry knowledge from your coworkers outside the IT department (easier to do at a small company). Industry knowledge will inform your code projects and put them in context, but your job is still to write code and not to participate in business decisions.
2. Study business admin or econ in school, get employed in marketing or operations, and attempt to learn programming on the side. You can use programming skills to write personal automation scripts and maybe some internal productivity apps to share with your colleagues, but will not be asked or trusted to work on any production codebase as that is not part of your job description, and they already hired dedicated programmers to do that. You do not have a lot of time to work on coding anyway, because you have other responsibilities.
Things can get more fuzzy at a small company where people tend to wear more hats. But at most big companies, job descriptions are pretty specialized, and programming either is your job or it isn't.