Yes, but there are also people who are intersex. It occurs in about 1/1000 people, and means you are neither biologically male or female. Examples include people with XXY chromosones, single X chromosomes, and people with XX chromosomes that were born with male reproductive organs instead of female ones. Hospitals usually assign these people either Female or Male at birth, but that only effects them legally. They don't go through puberty the same as male or female people, may have fertility and/or hormone differences and issues, and may or may not identify as LGBTQIA+. For those who do identify with the community, that's what the I stands for (we're inclusive like that).
This is LITERALLY EXACTLY what I mean with basic vs. advanced biology. Basic biology is "the two sexes are male and female, female with a uterus and XX, and male with testies and XY."
What I've said about intersex is just the tip of the iceberg on how sexes, chromosomes, and reproduction ACTUALLY work in any advanced level of biology.
P.S. all of this has to do with biological sex, gender is a whole other thing
P.P.S. Thank you for proving my point :)