Yes, just like in RL, the former team has first crack at them. Whether they will re-sign depends on the message they have. If they're just looking to get paid, they're testing the open market. If it saying something like I'm willing to stay or the equivalent, then they will re-sign if you meet asking price.