Is It Safe To Jump Out Of A Vehicle To Avoid Being In An Accident?

this morning I took a keke from my street, at the end of the street there is something like a little hill before you enter the high way, and as the keke was climbing this hill at a point, the brake fail the driver try all he could, nothing seems to work and the keke was coming down to no direction, went I saw a chance for me to get out I did, although I fell because of the speed it was using to come down bt I was not wounded, the keke stop only after hitting someone building. after the whole thing a man came and warn me, that should not always jump out of a vehicle during accidents, that I should always stay inside the car… I was like will I see dead coming and still wait for it… my question now is: is it safe to jump out of a vehicle during accidents?