It depends on several things .
I used to hitchhike cross country , and witness to people of The Lord , and had many spiritually enriching + endearing experiences .
So in that context , it could be perceived that since one was observing Christ's Charge to witness , that such allowed an exemption from man's laws .
Then Peter and the other apostles answered and said, We ought to obey God rather than men. <-----> Acts 5:29
Or if one was in dire straits , ( broken down in a cold and desolate place ) , the severity of circumstance could overrule ordinary ordinances .
...Have ye not read what David did, when he was hungry, and they that were with him;
How he entered into the house of God, and did eat the shewbread, which was not lawful for him to eat, neither for them which were with him, but only for the priests? <-----> Matthew 12:3+4
But even if one has an extraordinary reason for hitchhiking , those cleaving to the letter of the law may still choose to seek to punish ; and if one has no weighty purpose for doing so ... disobeying the law would indeed appear incriminating in a sinful manner .
Also times seem to have changed somewhat for the worse , so what was reckoned more excusable / allowable a few decades ago , may not appear nearly as much so , in today's atmosphere .
My advice - if it isn't necessary for some dire reason , or a specific aspect of ministering to others , avoid it , and seek alternatives , like walking , jogging , biking , taking a bus , or a train , etc.
[ Hitchhiking in general does pose some danger especially for women .]
May The Lord Be Pleased to Continue to Watch Over and Protect !
wm