Yes, from the previous emperor Agustín de Iturbide, ruled Mexico for about a year in 1822-23 before being deposed and as Maximilian and his wife had no children they adopted two of Iturbide's grandchild as possible heirs, although there some doubt over this as wiki states
Maximilian was...