Yep. Headwind costs more time than a tailwind will reduce travel time.
It's really simple to explain by looking at the extreme case. If you have a tailwind equal to your airspeed, your groundspeed doubles and you will get there in half the time. If you have a headwind equal to your airspeed, your groundspeed is zero and you will never get there at all.