I'm not sure, but as AFAIK, the 17 can't be turned into a 22, so I would expect the same thing to be true for the compacts.
FWIW, I think going from the 22 to a 17 works, and probably the same for a 23 to a 19, but not the other way around.
Never tested it though
EDIT: I just checked Glock's website, all the dimensions are the same, so maybe it wouldn't be a problem