Certainly it can be done and done safely. However, from what I have noticed is that animals of most species, that are housed in pairs or groups, are less likely to breed. That is just my personal observation over the years.
Keeping them in pairs or groups is not common for various other reasons.
1- While it is not common, hogs have eaten eachother.
2- It is much easier to keep track of animals health, feeding, crapping, and so on, if they are housed individually.
3- Stress levels my be lower in animals that are housed individually. There is no competing for food or the optimal thermal spot in the cage.
4- Like I mentioned, in my personal observations, animals that are housed individually will breed more readily when an introduction is made.
I am sure you can dig up other reasons from other serious keepers as to why they prefer to house their snakes individually.
Hope this helps.