It is better to have cats of the same gender if they are not spayed or neutered. But, the personality of both cats will tell if they will get along or not. Friendly cats, regardless of their gender, will get along.