This trial is conducted in Asia, Europe and North America. The aim of the trial is to evaluate safety, efficacy and pharmacokinetics (the exposure of the trial drug in the body) of NNC-0156-0000-0009 (nonacog beta pegol, N9-GP) in previously treated children with Haemophilia B.