Buildcraft pipes have become a bit smarter as of late and don't send items in a direction of a full inventory.
However if the inventory is empty there is still a 50% chance (if we are talking about a T-junction: 1 input, 2 outputs with the same chance of being chosen) that it will continue past...