If your company shares are unvested, it's likely they will be lost if you get laid off. However, many plans contain exceptions for members of staff that have been let go through no fault of their own.