Can I apply a code after payment?

No, only before validation.