Am I wrong?

Ive known since I was about 11 years old I've always wanted to have a family of my own. 
​I love the idea of being a mom and a wife, I got with the man of my dreams a while ago or so I thought..
​I miscarried our baby last October, he seemed like he didn't really care. Now I really want to be a mom but he's told me he doesn't want to be a dad and if I got pregnant he will leave me unless it's a baby girl.. Obviously I can't make sure of that now can I?! 
Would it be bad of me just to try and conceive with him either way and if it's a boy just to let him leave? I really love the man but I can't deal with never being a mom, it's the only thing I can think about lately.. 
​Anyone got some advice? I don't want to leave him, I have my heart set on him being my baby's father.. I love him to bits but I'm not willing to give up ever having a family :/