Yes, diet can affect sperm count. Eating a healthy, balanced diet with plenty of fruits, vegetables, and whole grains can help improve overall health and fertility.