Yes. Just like Louis IV the Fat said, there was a Thebes in Egypt and a Thebes in Greece. This later one is the one were Epaminondas was born. He was the first general that planned and achieved a tactical plan able to defeat the Spartans in a hoplites battle. The elite hoplites of Thebes were a group of homossexual men (couples mostly) that were called The Sacred Band.

As for Historical justification for the Cartaghinian Sacred Band Infantry I was never able to find out if it was true or not.