Yes.  Using someone else’s prescription drugs without your own prescription is a disorderly persons offense.  You can face up to six months in prison and $1,000 in fines.  The police officer does not actually have to see you using the drug to charge you.  In most cases, the prosecution will use the common symptoms of prescription drug use as their primary evidence.