Was researching on this and the IRS article confirms your answer as well. For the people in the future, here is the IRS link
https://www.irs.gov/individuals/international-taxpayers/nonresident-alien-spouse
If, at the end of your tax year, you are married and one spouse is a U.S. citizen or resident alien and the other is a nonresident alien, you can choose to treat the nonresident as a U.S. resident. This includes situations in which one of you is a nonresident alien at the beginning of the tax year, but a resident alien at the end of the year, and the other is a nonresident alien at the end of the year.
Leave a comment: