This is dependent on the vesting schedule and the signed agreement the employee had with their employer. If the employee is terminated before shares are vested, then equity returns to the company. However, if vested, the employee can buy, sell or keep shares depending on the conditions of their agreement.