I wouldn't. Sometimes multiple dg (male, which are most commonly available) get along in a tank that size, more often they seem to fight and one just bullies the other severely. They are more peaceful with other fish than with each other. They can be quite feisty!
If you want to try it, I would only do it IF you have a back-up plan or are willing to take the fish back to the store, even without getting your money back.
Two roads diverged in a yellow wood, but thankfully they both led to fish stores.