Erectile dysfunction can have genetic factors, but it's influenced by various other factors like lifestyle, health conditions, and medications.