Yes. If the code does not arrive within 20 minutes, the activation closes automatically and the amount returns to your balance — nothing needs to be clicked.
You do not have to wait until the end: cancel the activation on its page and the money comes back immediately. This works as long as the code has not been received yet.