You absolutely can keep two Jack Dempseys together. It will be difficult to introduce them though, especially if they are the same sex. The best way is to raise two fish together when young. Or use a tank divider for two adults so they get used to one another over time before sharing the same space.