Not in my experience.
I've worked both as a research mathematician and as a programmer working on production software.
Even applied to the "same" types of problems, I've found them to be very different in day to day activities, goals, incentives ... really they are quite far apart.