This depends on the rating of the transformer and the power useage of the monitors. If you add up the watts the monitors use (Which Should be printed someplace on them), it must be less than the rating of the transformer.
If you will only be using one monitor at a time, there is no problem, just make sure you can't make a mistake and turn both on.
Personally I'd just buy a second transformer, they are not that expensive.