A man can get an erection at any age. Erectile dysfunction, or the inability to get or maintain an erection, can occur in young men. However, it’s much more common the older a man gets.