Certainly. We don't typically teach gene expression at high school and when we do it unfortunately just flies straight over the heads of most children, but I'm hoping that it's not news to you that a liver cell or a retina cell does not actually need the DNA code for your feet and ears even though every cell has the full DNA code; at any given point in your body, there's an intricate biochemical control over which part of your DNA is being activated for the cell's actual job.
Sometimes that goes wrong for many different reasons. That's why you could have a dominant eye color gene and still come out with blue eyes - it's rare, but it happens, and there's billions of people on the planet so we're talking millions of people or more who could be having this. There's a lot of redundancy in your DNA for this purpose but it's a complicated task to catalogue all the anomalies that this could result in.
Well, sometimes that happens to your sexual characteristics.
Sometimes babies are born with some kind of anomaly in their genitals, maybe their urethra doesn't extend the whole way or their clitoris looks too long - And, most people don't know this, but it's been standard medical practice all over the western world to just snip something down there and give the baby back to the parents without even telling them they've done this.
And kids know when something is wrong with their bodies. Kids know that their bodies aren't doing what people tell them they're supposed to do. If something grows up to have a weird sensation or something isn't growing during puberty quite right due to scar tissue they were never told about, they know. Even if they never find out that the doctors intervened surgically at birth, they know that they just don't have the body of most girls and most boys; and it could be genetic (XX and XY aren't the only two possibilities), but the point is that it could be happening even if they had the X and Y chromosomes as normal but those chromosomes just got activated in the wrong places during development.
Example of academic citation: https://adc.bmj.com/content/89/9/847.full
(There's a LOT of citations I could source but I really just want you to get the idea that this is a legitimate thing in medicine not subject to partisan or activistic interpretations; it happens whether it's convenient to your view on the issue or not.)