Absolutely yes. Diet and eating habits are key factors when it comes to determining sperm quality in males.
A number of studies have demonstrated that what you eat on a daily basis, especially if it contains high amounts of carbohydrates and saturated fats, can diminish the sperm count, causing oligozoospermia.