No you cannot use your 2022 AGI to e-file 2024.
Where do I find my AGI?
https://ttlc.intuit.com/community/agi/help/how-do-i-find-last-year-s-agi/01/25947
Your 2023 tax return shows your 2022 Adjusted Gross Income (AGI) If you filed a joint return then the AGI is the same for each of you.
Form 1040 line 11
If entering the amount from your 2023 tax return does not work, then try entering “0” instead. If that does not work and you still cannot e-file, then print, sign, and mail your tax return.
You can get a free transcript of your past return from the IRS:
https://www.irs.gov/individuals/get-transcript
Or....try using zero. If zero does not work, then print, sign and mail the return.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**