Can I keep logging a sensors data to an sd card while the arduino is in delay

TanHadron:

digitalWrite(ledPin, HIGH);

?

I'm about to give up and by another uno.lol
one to turn on and off my device and one to log data