Only in the days when we didn't lock the cockpit doors. Now that the cockpit doors are locked, even an actual gun wouldn't be sufficient to hijack the plane (the cockpit doors are essentially impossible to open from the outside, at least not without equipment that would be impossible to bring on a plane and would be rather conspicuously slow to use during a flight).
Post 9/11 passengers are not going to allow a guy with a razor blade hijack a plane, or even several guys with razor blades. Passengers and crew members now fight back and have the advantage of numbers.
Yeah, but what if _everyone_ on the plane were a hijacker?
Wait...
But of course you can break the plastic knife and fork they give you and still stab someone in the jugular.
You could even sharpen the headphones connector.