Was Christ's death for sin an afterthought in God's plan?

No, it was planned before creation for Christ to pay the sin debt of lost humanity.

Watch the Teaching: Can You Be Saved After the Rapture?