Yes, you need to enter the W-2 as well as your 20199-B. The value of ESPP is your income and is reported on your W-2 in the year received. If you received the stock in 2020, you need to report the value of the stock as income plus gain on the sale, if any, from your 1099-B on your tax return.