Married filing separately using 1040 NR

I am a non resident alienn. Last year we filed 1040 joint return as my spouse is resident, but this year I would like to file married filing separately using 1040NR. Can this be done?