Foreign dogs are included, but may only have 3 to 5 generations behind an import or overseas dog, more if some of the dogs ancestors relatives were imported.
Happens a lot in my breed, due to small gene pool, but dogs from same/similar lines have been imported over the years.
So it is rare to have a COI based on less than 5 complete generations.
Most often you get something like 'this calculation is based on 16 generations, but with 6 being fully complete'.