Yes, it is possible. That also happens to bulbasaur. It has nothing to do with gender.
It happens something like:
yanmast wants to learn power split. Which moves will it forget?
3..2..1.. poof! yanmask forgot ominous wind and learned powersplit!
yanmast wants to learn guard split. Which moves will it forget?
3..2..1.. poof! yanmask forgot power split wind and learned guard split!
Powersplit will be more usable to confagrigus, since it has high defense.
guard split may be useful in double battle if you use on your team, like blissey