No, it's down to what information is presented to the network and by the network, not what's stored in your phone.
The call comes from the other phone, and can have Caller line ID present or not. (Pretty much all UK phones have CLI). They also have a flag that says whether or not the caller line ID should be given to the recipent of the call or not.
If the call has no CLI at all (for example, a call from many places overseas) then you get unknown, if the call has CLI but the withold flag is set to Y, then the number shows as witheld.