Yes, your code remains active until you complete a successful transaction. The funds associated with the gift card also remain available until that time.