Ideally, sperm banking should be done before the commencement of cancer treatment. The earlier, the better, as it ensures higher quality and quantity of sperm. However, it can also be done during treatment breaks if necessary. Timing is critical, and prompt consultation with a healthcare provider is recommended.