i do not think it is a good idea, think of quarantine, also while housing them together if one gets sick they both get sick. try tubs. i loved my tanks cuz u can watch them, but with tubs everything is easier and with the right tubs u can still watch them
If this person splits the tank with a divider, that is not considered housing them together.
OP: As long as you quarantine your second animal putting them in a divided 20g should be no problem.