I know enough math people who are ABYSMAL at coding due to the differences between domains and the constraints that shaped their way of thinking, and a lot of linguists who are surprisingly good at it due to just that.
I dismissed programming as a freshman because I was so bad at math in high school. Turns out my high school teachers were very bad teachers (shocking when they're paid so little, who would've thought? ) I learned Italian fluently, spent a few years overseas immersing myself in it, came home and had a rough time finding my passion. Took a gap year and messed about with some online coding classes (code academy) and realized I loved it. It felt like a new language that instead of being expressively emotional it was a way to express logic and rules. I like logic and rules.
So I completed the minor +4 higher level classes and taught myself mobile development. No regrets... Besides not going into it as a major maybe.