This is a reductionist perspective that is unhelpful. Does buying a water cooler in the office increase profit margins? What about a coffee machine? Across a wide portfolio of decisions, a business does need to be profitable. However measuring the individual impact of single vendors is often a very difficult task.
How do you measure developer productivity? Code quality? Developer happiness? As far as I know, no one in the industry can put concrete numbers to these things. This makes it basically impossible to answer the question you pose.