It is possible, but almost always illegal except under very rigid regulations. And it is not a simple matter of dropping in or filing down parts (contrary to what the movies would have you believe)....
Each one has their separate function. The General Purpose Machine Guns.. in a US Army platoon, two are assigned to each platoon.. those two GPMGs are ultimately close to 70% of a platoon's firepower....