Mixing monitor connections with Mobo and GPU?

I want a possible 3 monitor setup (not Eyefinity or anything like that). If I have two HDMI compatible monitors and one with only DVI/VGA, and I have a mobo with 1 x HDMI, 1x DVI, 1x VGA and a GPU with the same outputs - am I ok to hook one HDMI monitor to the GPU, one HDMI monitor to the mobo and the third DVI/VGA monitor to either mobo or GPU?