Correct, but not a full explanation.
Assuming a (very small to keep things simple) country with 100 fertile couples, assuming a 50/50 chance of having a boy or girl, and disregarding genetic abberations...
First go: 50 boys, 50 girls
then 25 boys, 25 girls
then we run into 'statistics' land with
12.5 boys, 12.5 girls, and so on.
It won't be exactly 50% outside 'statistics' land in the real world, but near as dammit, and I'm not anal enough or that bothered to work out the finer details.