Thanks for your question. Erectile dysfunction is certainly more common in older men but it also occurs in young men. There are a variety of reasons for this. You ask whether you have ED. This article called How to Determine if It's ED might help to answer your question.
This short video called What is Erectile Dysfunction? may also be useful. If the clues add up it may be wise to see your doctor.