I sort of understand what your asking. I've been sober since 1998 and began taking medication for MS symptoms 2 years ago when I was diagnosed. I also have recovery friends who, back in the old days, abused the medication I take. Lol. Obviously I take it for different reasons than what they were. Talking to your doctor sounds like a very sane and sensible thing to do.
For myself, I don't think it is 'the medication' that will cause an addiction for people like us who already live a recovery program but more about our behavior with it. I.e. playing doctor ourselves and increasing the dose because we like the effect. If I was doing this or even considering doing it I would take it as a sign I was in serious trouble.
Hope that helps and welcome to SR.