if all u got was possession of 5 g's then it's a misdemeanor and they shouldn't even have that information. but if they nailed u for trafficking those same 5 g's, it is a felony and they can use it against u. completely depends on the nature of the charge.