yes cannibalism, although rare in corns, is a possibility
or one snake can sort of bully the other and stress each other out
do you know their sexes? If they are both female, that usually has a better chance of working out with fewer problems.
young male-female housing situations can be dangerous to the female if they mate when she is too small to safely become gravid (pregnant).
Most people generally agree that separate enclosures are best. So if you can, get another rubbermaid or sterilite or tank or whatever and house them seperately. IMO