Getting married and living in seperate states, can we file jointly?

I am getting married in October. My spouse lives in NH and I live in MA. We are not moving in together until next year when we get a house together. Can we still file jointly?