I don't see anything wrong with it, any more than there is anything wrong with 1st trimester abortions.
However, I don't see any point to it. Why would someone go to so much trouble to have a child of a particular sex? It just doesn't make sense to me.