I believe she is as well I just wonder if there isn't a closer relative to James II out there than her.
I should hope so!
Wikipedia....
Ancestry
Main articles: Descent of Elizabeth II and Ancestry of Elizabeth II of the United Kingdom
Elizabeth is the daughter of George VI), the second eldest son of George V and Queen Mary, and Lady Elizabeth Bowes-Lyon, later Queen Elizabeth, and, after her daughter's accession to the throne, the Queen Mother, the daughter of Claude George Bowes-Lyon, 14th Earl of Strathmore and Kinghorne and his wife, Nina Cecilia Cavendish-Bentinck, the Countess of Strathmore and Kinghorne.
Queen Elizabeth is the male-line great-granddaughter of Edward VII, who inherited the crown from his mother, Queen Victoria. His father, Victoria's consort, was Prince Albert of Saxe-Coburg and Gotha; hence Queen Elizabeth is a patrilineal descendant of the German princely house of Wettin. She has Danish roots also in the main lines, and her lineage includes figures as diverse as Armenian princes, Mongol warriors and Muslim leaders.[41]
Other notable members of the princely house are King Albert II of Belgium and former King Simeon II of Bulgaria. Through Victoria (as well as several other of her great-great-grandparents), she is descended from many English monarchs extending back to the House of Wessex in the 7th century, and from the Scottish royal house, the House of Stuart, and its predecessors, which can be traced back to the 6th century. There is a direct line of descent from William the Conqueror to Queen Elizabeth. As a great-great-granddaughter of Queen Victoria, she is related to the heads of most other reigning and non-reigning European royal houses such as the former Hohenzollern royal houses of Germany and Romania. Through her great-grandmother Queen Alexandra, she is descended from the Danish royal house of Schleswig-Holstein-Sonderburg-Glücksburg, a line of the North German house of Oldenburg, and one of the oldest in Europe ; other members are the Duke of Edinburgh, Margrethe II of Denmark, Harald V of Norway, Queen Sofia of Spain, Carl XVI Gustaf of Sweden and former King Constantine II of Greece, who are also all descended from Queen Victoria. She is further related to all ruling hereditary monarchs of Europe, as a descendant of Johan Willem Friso, Prince of Orange (1687 1711), common ancestor to all reigning European royal houses.