Hello if I had the same job from I had a yr before do I gotta have a w-2

I worked the same job from 2023 and 2024 will I need a W-2 or can I just use my last paycheck stubs