Yep! In fact that's how a lot of custom mechs come about as players swap weapons and other bits to make variants that fit them. That's pretty much the real-world origin of the SuburbanMech, for instance, IINM, a non-canonical fan variant that finally got canonized in Shrapnel.
BattleTech's construction rules are purpose-built to do that exact thing.