Of course. If the surviving spouse didn't remarry before the end of the tax year, he/she may choose to file a joint return.