Get your taxes done using TurboTax

No do not use the Net Pay.  Use the Gross Pay to be safe.  Your AGI can be more than your pay.  It includes everything like 1099  interest and dividends.   Look at your 2022 return and see all the items you reported on it.  Look at your 2022 W2 and see if you can match box 1 to your pay.  There are several items that affect W2 box 1 so it can be hard to figure out box 1 if you have a lot of deductions.  Some deductions are pre-tax and some are included in box1.