If you're working with the same time for both, yes! But if both legs have the same amount of time spent at them, you can just use the average velocity equation you had earlier.
If they go the same distance, they must have differing times, so you'll be a t_1 and t_2, but then can set them equal...