yes diabetes causes decrease in the libido in both sexes and erectyle dysfunction in males and also ejaculation problem. improper control is the main cause. though long standing diabetes affects the sexual function, if properly controlled and maintained the onset of the sex difficulties can be delayed.