Correct. You need to take care about what direction the wave is travelling because where the receiver is when it receives a pulse is not where it was when it was emitted (which can get messy if the receiver is accelerating). As long as you remember about leading a moving target when you set up your maths, you're fine.