Only Explorers, Fighters and Haulers can be broken into module parts, and you can't mix-and-match between ship types. Fighter parts can only be used to build a new fighter, Hauler parts for Haulers, etc.