Yes, certain medical conditions such as diabetes, thyroid problems, and infections can affect sperm count. It’s important to manage any underlying medical conditions to improve overall health and fertility.