When boys and girls are born, does their DNA already know what it means to be masculine or…

When boys and girls are born, does their DNA already know what it means to be masculine or feminine? Or do boys and girls learn masculinity and femininity by watching others? Is it nature (biology) or is it nurture (environment)?