Not necessarily bad engines (they are a joint peugeot/citreon group engine, also used by Mini/Ford/Volvo), but they do have a bit of a bad reputation with DPF related faults, and if neglected can need the Turbo replacing.
Obviously ensure it has service history, Eloys DPF fluid should be refilled every 37.5k miles iirc and the actual DPF is advised for replacement every 75k miles according to Ford.
All depends why you are looking at it - depending on mileage you may be better off with a petrol - potential diesel problems can now be a lot more expensive than older diesels were - the cheaper running costs are not necessarily as attractive if something goes wrong)