Thanks for the lesson.
Certainly the fact that a pilot was onboard will be considered in the investigation, it just won’t absolve the CO of his responsibility.
I’ve seen some pilots in some ports that scared the hell out of me. There are still many places in the world where it’s obvious that nepotism and/or bribery will still get one far.