It's not illegal, but labeling them as a Mary Sue simply for that is more than a tad pig-headed.