Visa and greencard

Good afternoon,

in the past (2016/2017/2018) tax years I filed taxes as a J1 visa holder and Au Pair. 
In 2021 I entered the US at the beginning of January with a student F1 visa and in September I became a green card holder. Technically I pass the presence and the greencard holder tests. But I want to make sure I can file my taxes as a resident. Thank you.