Yes, you can still apply for the DV Lottery even if you have been denied a U.S. visa in the past. The lottery application process is separate from visa applications.