When Ty and Jim get busted when Jim goes to the hospital to get his arm checked, do they get arrested for having heroin in their system or for possession?

A follow up question, can you be arrested for having an illegal substance in your system or can you only be arrested for possession? (I understand you can be arrested for being drunk in public and when driving, but alcohol is legal when you're 21 so that's completely different)