Yes. Remember, it's usually almost ALWAYS better to look like a user in the eyes of the law, than a dealer. You might be able to cop out a half-way house deal or some kind of substance-abuse therapy program instead of prison. Start going to NA meetings immediately and get signatures from the hosts, just in case. Make yourself look like the victim to an uncontrollable drug addiction if that's what it takes. You do not want to go to jail, and the courts offer many alternatives to jail for drug addicts, where as dealers get sent straight to prison.
Just in case, though.. cause there seems like there's a flaw in the way you were arrested. Maybe if you do tell the truth and stick by your story, of being there to look after your friend, than the whole thing will get dropped. But just to be safe, start going to meetings and therapy and get signatures, and be ready to pose as an addict in need.