Yes, the surviving spouse can elect to file a joint return provided they did not remarry prior to the end of the tax year.