Not always.  In many cases, the driver is responsible, but all parties have a duty to exercise reasonable care to ensure no one gets hurt—and this includes pedestrians.  In some cases, mitigating factors can reduce the driver’s liability for compensation—such as in situations where the pedestrian darted into the road or if the pedestrian was wearing dark clothes and walking at night.  All evidence is taken into account to apportion liability in these cases which, under some circumstances, may be shared between driver and pedestrian.