Under California’s Health and Safety Code 11500, it is illegal to be under the influence of a controlled substance. You could face a misdemeanor conviction with up to one year in county jail.