Going to rehab for marijuana use is not going to get you charged with possession. Admitting in rehab that you have previously illegally possessed or used marijuana or other street drugs is not going to get you charged with possession. Unless this is a psychiatric facility, and most 'rehabs' are not, then you would not have a record of inpatient psychiatric treatment.