It is best to give up smoking and alcohol prior to surgery, yes. Because engaging in these activities may impede your recuperation.