you'll get a whole heap of different replies to this one!
Personally, as long as you are aware of the risks involved and do everything to minimise accidents then it should be ok (as long as the snakes seem happy enough together). I used to keep my corns together but have decided now that it's easier to keep separate (simply because I have 4 corns and that needs alot more space than I'd anticipated). If you do decide to keep together then think about the following
1) Are they both same sex? Females generally get on ok, some (*and I stress only some) males can get on ok. If you aren't ready for baby corns then dont keep male/female together.
2) Always feed separately! This is very important as accidents can and likely will happen if you feed together. I fed mine on separate days also so that if there ever was problems (regurge etc) then you'd have a pretty good idea which snake it was.
3) Snakes should be roughly same size.
4) Put PLENTY of hides in so that the snakes are not forced to 'cuddle' up together.
And last but not least, keep an eye on them. You will be able to tell if your corns aren't getting on. My mum's male hatchling was quite aggressive (not to other snakes but to me!) and has calmed down alot since being separated. On the other hand, the older male, Pretzel, misses his 'flat-mate'. She escaped a while ago and he always seems to be looking for her. Think he's given up now though
Sorry for long post, and these are just my personal opinions. You'll get a stack load more!
Hth anyway,
Rach