If your friend has several numbers under the same account, you will be connected to the one they set as their Preferred number. We used to call this the 'Primary number'.
However, if you want to be sure you can reach your friend on a specific phone, then you can always create different local numbers for each of your friend's phones.