Yes, Scripture does not forbid it, because death ends the marriage relationship and frees the surviving spouse from the law.
Watch the Teaching: What Happens to Your Body After the Resurrection?