Voiding a contract effectively releases a player without accruing any of their guaranteed money as dead cap. So yes, you could then sign them to a longer contract, however you'd be doing so at the risk of someone else signing them (hence Sardeen's comment).