Yes, helicopters were used for military offensive purposes, but not, as far as I know for direct attack using weapons mounted and fired from the helicopters.
At least three of the types of helicopters used in the Korean War have been fitted with weapons (e.g. machineguns and sometimes rockets), or at least have been since then – I’m not sure if they were during that war.
The military offensive purposes they were used for were air assault missions as transportation. That is, they were sometimes used to bring foot soldiers quickly to otherwise-unreachable (especially not so quickly) places from which the foot soldiers then launched attacks. They tried to keep the helicopters themselves away from enemy fire. They also resupplied fighting units and evacuated casualties, both of which enabled the men to do more fighting than if they were not supported by helicopters. They were also sometimes used to quickly move indirect-fire batteries (e.g. rocket launchers) to avoid hostile counter-battery fire by providing quick relocation after firing.
Related articles:
http://www.historynet.com/the-rise-of-the-helicopter-during-the-korean-war.htm
https://www.army.mil/article/177302/