Yes, since you smoke and you are overweight you are in high risk
for ED (among other much more serious conditions). But
gynecomastia may indicate a hormonal disorder, so you have to wait and see the results. In some cases no apparent cause can be identified.
If you need a lifetime fix or not depends on the exact nature of the cause of your symptoms. So, again you have to wait for the results of the test.