That depends. AFAIK, if its prescribed to you and you give it to someone else, that's illegal whether or not its scheduled. Otherwise, if it isn't scheduled, there's no real legal issue there.
Drug testing in the US is insane.
Drug testing in the US is insane.
P.s. Script and illegal use of prescription opioids are the gateway to street opiods (e.g., heroin).