Yes you can. I'm not in the habit of quoting country songs, but "All gave some; some gave all" is grammatically correct. :) The two sentences have differing impacts, though. Your first sentence is slightly more poetic, more dramatic, more emotional.
Although this is stylistic, the common guidance can be exemplified by "When to Use a Comma Before 'As'" at Magnum Proofreading Services.
It starts off with an example that doesn't match the one used in the question:
George cleaned the house as his wife had asked him to.
George cleaned the house, as his wife had asked him to.
Both of these ...