Sadly not!
If a country forbids non-authorized persons (as that specific country defines such persons,) from being on the flight deck whilst operating within it's airspace or territory, then it doesn't matter what the captain or even the airline itself may think, the prohibition is in effect. If a captain or company elects to operate in violation of that instruction, they do so under the threat of penalty and sanction.