I have five children and I found out the sex of each of them when they were born. Turns out that this method is 100% accurate.
But then at birth, that’s too late to send the kid back for an exchange if you didn’t get the gender you wanted. ;)