Does your race affect how fast you run?

For some short distance races you put all energy into running so you go faster, but in long distance and you all energy into running, then you would be out of breath or extremely tired faster. It's in your perspective.