Yes.
Egypt Air is an example of a pilot committing suicide, before doing so he pulled the circuit breakers for most systems including some for the flight data recorders (black boxes).
For safety reasons a pilot needs to be able to quickly isolate any system (even ones that are 'vital'). If the pilot wishes to kill everyone, he will, there is no point trying to design against that. However as the vast majority of pilots are frequently making changes to the automated systems idea of the world for the better of the plane.
At the moment on many forums there are a lot of comments from people saying we need to clip the wings, so to speak, of pilots, limit what they can do. These people have never sat on the left.