For the calculations to all work out and to be able to project the new sequence into space, the new sequence should have the same length as the sequences in the MSA. There are some tricks you can do depending on whether or not the new sequence is longer or shorter than the MSA length to “change” the sequence length… and that is definitely case-dependent.