Yes, but as Queen Consort—not Queen Regnant. Here's how the Danish succession works.
As the wife of King Frederik X, Mary became Queen Consort immediately upon his accession. She holds the title Her Majesty The Queen but has no constitutional executive authority. Her role is ceremonial, representational, and charitable.
Denmark adopted absolute primogeniture (2009)—eldest child inherits regardless of gender. This applies to children born after 2009. Crown Prince Christian (born 2005) remains heir under the previous male-preference rule, but his children (Vincent/Josephine) fall under absolute primogeniture.