I don't keep my males together, but they can see each other. Males will fight eventually if you keep them together. I think that keeping females together is fine, but I would hesitate to keep males together or even males and females together until they are at least breeding age.

Do you know what sex they are? Are they clutch mates? Are they the same age?