They may get along, but "stuff" happens. In certain circumstances, many parrots can hurt or kill another parrot.
IMO, it's best to keep them is separate cages, and always supervise their time together when they are out of their cages.
I'm considering adopting an african grey, but am wondering if it'd be able to coexist with my yellow naped amazon. I just don't want them to hurt each other.