I would say Pragmatic is more "go with what works" or "Whatever works best". Although Machiavelli would certainly go along with the end justifies the means, a more general term would be utilitarian - the result is the thing, it doesn't matter how you get there.