i'd say yes it is dangerous.
for a couple reasons
1) disease. wild corns are exposed to much more than those in the pet store and especially more than those from a private breeder. diseases, parasites, and the fact that they are wild
2) sometimes allowing corns to live together really stresses the lil fellas out. Competition over hides etc.
3)if they're both male, then they'll more than likely fight when they get older.
4) if you have any question, dont do it.
Keep'm seperate and you dont have to worry about any of those problems