Absolutely, given the pipe is transparent to the ultrasound signal. Actually, it is a well-known technique (see for example http://www.sensorsmag.com/sensors/acoustic-ultrasound/ultras...), because if the angle of incidence of the ultrasound beam to the pipe flow velocity vector is known (which is not the case with blood vessels), the problem becomes trivial.