Any local facilities can be nationalised. If that includes the relevant factory then it makes no difference where the head office is.
Drugs companies often have more than one product, and few of them are the only alternative. A government can prevent them doing any business in their country at all. It can set up a lab to make the drugs itself, or hire another company to do it.
However, in the UK at least, they tend not to take the muscular approach and I believe there have occasionally been cases where the relevant committee has decided that a particular drug has a poor cost/benefit ratio, and the company has not made sufficient concessions, so that drug is not available on the NHS.
Apart from the few directly affected this is not a source of public outrage against the NHS. People know who the villains are.