Yes, it is possible to improve your erections through lifestyle changes such as:
Losing weight
Stopping smoking
Limiting alcohol consumption
Avoiding recreational drugs
Exercising regularly
Limiting stress