Can I use a different filing status for Federal and State?

I got married in October last year, but I and my wife were residing in separate states till early 2007. So, on Dec 31st we were married...