It's a hypothetical question... But plenty of gay people have children through surrogacy, or they adopt prior to determining the child's sexuality.