If I have a military W-2 from 2021 I didn't receive until late into 2022, can I still file it on TurboTax in 2023?

I was dropped from boot camp and it took me months to get my W-2 because no one could tell me how to get it. Am I going to get in trouble with IRS?