Just as Lula has stated syrian hamsters are territorial. Once they reach maturity they would split and go their own ways in the wild. kept together they would likely fight to the death. So housing them in the same cage is not an option.
However if you have two in seperate cages that share the same room in your home that is perfectly fine. Just don't allow them to play together in the open, and be sure you wash your hands in between interacting with both of them