I said all things equal meaning shock mounts being in the same place, etc. A 26" compressed shock will not fit well in a 24" compressed suspension.
basically, a 10" travel and a 12" travel mounted the same way, if the numbers aren't right, the 12" will limit compression.