Yes, until her son was old enough to gain power. The reason Margrete 1. (she is spelled without the “h”) is the first Queen, is that she rulled for her son like Margrethe Sprænghest did, but when he died, she took power herself and founded the Kalmar Union and ruled the countries until she died.