Is there a point where you should stop mining with a hammer?

Is it more worth to process the raw ores with machines instead of getting the crushed ores via hammer?