Multiple independent LED speed control code via multiple potentiometers

Sorry, What i meant was:

int potPin0 = 0;    // select the input pin for the potentiometer
int ledPin0 = 0;
int val = 0;       // variable to store the value coming from the sensor

int potPin1 = 1;
int ledPin1 = 1;

void setup() {
  pinMode(ledPin0, OUTPUT);  // declare the ledPin as an OUTPUT
  pinMode(ledPin1, OUTPUT);  // declare the ledPin as an OUTPUT
  
  
}

void loop() {
  val = analogRead(potPin0);    // read the value from the sensor
  digitalWrite(ledPin0, HIGH);  // turn the ledPin on
  delay(val);                  // stop the program for some time
  digitalWrite(ledPin0, LOW);   // turn the ledPin off
  delay(val);                  // stop the program for some time
  
  
  val = analogRead(potPin1);    // read the value from the sensor
  digitalWrite(ledPin1, HIGH);  // turn the ledPin on
  delay(val)         // stop the program for some time
  digitalWrite(ledPin1, LOW);   // turn the ledPin off
  delay(val)             // stop the program for some time
  
}

I was experimenting with the code still..
I would like to have 4 digital outputs turn on and off and have the speed of each controlled by 4 separate analog read/inputs.. via 4 potentiometers.

Is this not possible with this type of code?