Those headaches before your period

You know those headaches right before your period. I get them every cycle before my period. My body is so amazing to be able to do that, but can’t it do the other thing I want so badly - to have a baby!