There are many variables which determine if:
1. If You could file as a non-resident and a resident (dual status alien)
2. If You SHOULD file as a dual status resident.
Variables include: Do you pass the substantial presence test? how much income the new resident earned prior to coming to the US, foreign income exclusions, tax agreements between the US and new immigrant's home country, FBAR, etc.
Having said all that I always advise new immigrants to seek the help of a good tax pro the 1st year in the US.