If you generate downforce (or lift), you will generate drag, doesn’t really matter how you do it.
They work by using the bernouilli principle to reduce the pressure under the car, by reducing airspeed.
Here is a visual example from an older lotus F1 car.
