Yes and no. The travelers will turn on/off the pump regardless of which is attached to the switch outside terminals. But they do make a difference.
Many like having a circuit OFF when both switches are down. If yours is this way, do nothing more.
If the pump is off with one switch up and the other down, then reverse the two traveler wires and you will be happy.
Said differently, if the pump is on when the bath switch us down, reverse the travelers.
Hope this helps.
GJ