I don’t think that tracks; I’ve always been under the impression that age of consent was just when you could consent to sexual activity. It didn’t account for age differences, power dynamics, or other factors that push it towards statutory rape. It was “at this age, they are able to consent to activity”, and then you would have the limiting factors of age difference, power imbalance, family, etc applied through other statutes.
I very well could be wrong or just applying knowledge of my own local area to places that don’t operate that way, so I’ll bow out on that. I do know that age of consent isn’t just a blanket shield against statutory rape in some locales or situations, though. The “statutory” part of statutory rape isn’t limited to only age of consent.
There is further conversation with another user below this, but that isn’t the case in some places, namely Virginia.
Additionally, statutory rape isn’t just bound to age of consent. There are myriad other statutes it can apply through, namely family, age difference, and positions of power over minors above the age of consent.