Potentially, yes. But when we asked about this we were told that not all heat pumps and head units are compatible -- so we seem to be locked in based on brand, model, and refrigerant type.
FWIW there are different sizes but they are standardized and you can adapt most sizes to each other (although on the compressor side you only would want to size down). If you ever need to replace it you'll need to be careful with the line sizes but you should be able to find a compatible unit to your existing install.
Controllers, otoh, are a different story. You will probably need to replace your head units if you also replace the compressor with a different brand. Same story with being careful about line size.
Refrigerant isn't a big deal as you'll need to flush it and repressurize anyway if you replace these parts.
> so we seem to be locked in based on brand, model, and refrigerant type.
Oh, that's totally true for newer models. They no longer use simple dry-contacts interfaces, but instead have complicated digital protocols between head units and the compressor.
So quite likely you'll have to replace them all.
But you won't need to open up the walls and replace the piping.