If you push too hard into a headwind, it can wipe you out. Years ago, I ran a 5k at Fort Monroe, Virginia. The guy in front of me would slow down for turns so I passed him at every corner. He'd surge past me on the next straight. From 1.5 to 2.5 miles was along the breakwater with a strong headwind from the bay. I passed him at the corner and sure enough, he surged by me on the breakwater. I let him run into the headwind for the entire mile and passed him when we turned around. I beat him to the finish by more than 30 seconds over the last half mile.
You can't answer the OP's question without knowing how strong the wind is, how tall you are, and how much you slow initially to compensate. However, it's not a zero sum game. If it's an out and back course, you will be slower even though you'll have a tailwind for half the run.