It isn’t pedophilia if the child has reached puberty. She got pregnant so she wasn’t pre-pubescent.
And he’s not being castrated for pedophilia (which in itself isn’t necessarily a criminal act), he’s being castrated for statutory rape.
Words mean things. Pedophilia is a very inflammatory word and this case doesn’t strictly apply, but using it in your headline assures you’ll get lots of clicks.