No. It would be reported on Form 1099-B. However, if you had stock options that vested or were exercised, they would show up on your W-2 as income (but not the capital gain portion). Depending on what type of stock plan it was (ESPP, RSUs, other Options), would determine how it's reported.