No, hacked Pokemon are not exceptions to the Undiscovered Egg Group rule (Undiscovered Egg Group Pokemon cannot breed, no exceptions). It does not matter if it has a gender, its Egg Group limits it from breeding.
The only thing that will change this is if you can somehow hack it so that the Undiscovered Egg Group Pokemon are able to breed.