Signing the transaction is done over the entire content of the transaction. Any subsequent changes to the transaction would invalidate that signature.