If the monitor really has only one input, but gives you the choice of either VGA or DVI . . . then plugging both in at the same time is bad.
If your monitor has multiple inputs, and the VGA and DVI can be selected separately . . . well, that's what it's designed for.