I’ve got a lift once, in New Zealand. Just got too tired to ride, 20 miles from nowhere, a nice person passing saw me and offered me a lift to the nearest town. I bought rejuvanating pizza, got some riding tips, and continued with the ride. It was fine.
Only thing that comes close to stopping you riding back home is a broken frame, or a tyre completely exploding. I carry spare tubes, a chain tool and a spoke key, and with that, and impromptu tyre boots made out of whatever is handy, you can usually get yourself home if something goes wrong that isn’t the frame breaking.
Oh, and I did have a really bad sprain up on Box Hill somewhere, had to limp / ride back a couple of miles to the train station one footed, catch the train home, then called friends to get someone to meet me at the station at the other end.