A person may not wound his body, for Hashem will seek his blood. A surgery that repairs a mum, by an expert physician, when the benefit exceeds the loss, is permitted. Smoking harms health, and one must refrain, as the Chofetz Chaim taught. Even in great afflictions he may not harm his life, for the neshamah belongs to the Creator.