A good physician would feel free to ask if this is suspected. It is so much better not to lie about this. Especially to your physician.
Medicine is not perfect, but addiction
is a disease and your drug use, if it comes up, should be dealt with in a non-judgemental and respectful manner.