Yes, there is a way around this. Read and experiment with the blink without delay example in the IDE.