Can I file tax along with my spouse - I was in USA till Mar-2019 and got married Jul-2019 and returned back with my spouse on Jan-2020. Am I eligible to filealong wife

I was in USA from Oct 2016 to March 2019. I returned back to my country after my VISA extension got rejected. I got married on Jul 2019. I came to USA with my spouse on Jan-2020. Am I eligible to file along with my wife?