Not all types of blood pressure medication cause ED, but diuretics and beta-blockers may more commonly impact sexual function.