Hypothyroidism
Yes. Untreated hypothyroidism can cause loss of libido and erectile dysfunction, among other problems.