The pains which are yet to come can be and are to be avoided. II.16, Sutras of Patanjali
Past pain is finished. Pain that we are in the process of experiencing cannot be avoided, but can be reduced to some extent by yogic practice and discriminative knowledge. Unknown future pains can be prevented by adhering now to yogic discipline.