The legality is kind of murky according to motor vehicle art's wording. Unlikely you could get arrested for it unless you were impeding traffic or clearly inebriated. The traffic signs say it is illegal to "pick up" hitchhikers, not hitchhiking itself.