Most motherboards will allow you to mix memory sizes, as long as you keep the corresponding DIMMs in each memory channel the same size. For example if you have a motherboard with a two-channel memory controller, you could have two 4GB DIMMs and 2GB DIMMs, but not 1 of one type and 3 of the other.
But it does vary by motherboard, so you really need to consult your manual.