The Picts, early inhabitants of Scotland, were a matriarchal society where land and possessions passed down through the female line. It may be this is what is behind what you were told, although more recent clans were run along male lines much as today's society. Marriage probably wasn't such a big thing until fairly recent times, however, and a man marrying into a clan may have taken on the name of that clan the same as his partner.