I'm not a biologist either, Macadia, but I don't think so, as 'gender' is just a set of social conventions. There is nothing about human development that makes pink a colour for girls (in fact that was a recent development) and in different cultures men wear garments more akin to dresses than trousers. Fifty years ago, most women didn't drink pints, and would mostly put lime in a half of lager to sweeten it. Tattoos were for sailors and convicts at one time, whereas now it's not uncommon for women to have tattoos and drink pints of real ale. It's fashion, and changes over time and place.
I don't think anything that happens in the womb can make someone prefer one set of norms to another. Until the explosion of trans 'issues' it was becoming much more usual for gender norms to be blurred - as women got tattoos and drank pints, men could push prams and do housework without comment, which wasn't the case in my father's generation. Gay people gained acceptance and children given options instead of 'girls' and 'boys' toys. Then all of a sudden boys who wanted to play with dolls and wear a princess outfit were told they were 'in the wrong body' and that they could 'become a girl', and the progress was lost. Gay people stopped being accepted by the trans movement, and told they were 'same-gender attracted', which basically eradicates homosexuality.
There does seem to be a link with autism, particularly with non-binary young people (that is an observation purely based on my experience of working in a university, and hearing from friends who teach in schools) and I wonder whether that is because if certain things are presented as being for boys and a boy prefers the ones supposedly for girls it is difficult for a neurodiverse brain to process? Deciding that if girls like these things and I like them too I must be a girl might seem more straightforward? I don't know - as I say, I am not an expert, but it seems to me more likely than something biological happening before birth.