It'll work, but your memory performance will be slightly less optimum as it won't run in dual channel mode.
You need identical sticks populating both slots of a "bank" of memory to run dual channel mode. If your board has 4 slots, you have 2 banks, in other words. You can have 2-4's in one bank, and 2-8's in the other bank for instance, or all 4 the same, or 2 sticks in 1 bank the same, and no sticks in the other bank. You cannot have 2 sticks in 1 bank and only 1 stick in the other bank and have dual channel memory operation. The memory must be paired in each bank to get dual channel operation.
Now, if you need the memory, by all means it is better to run 3 sticks than not have enough memory for your application; far, far better. However, if you want to extract peak performance, then you need to install memory in pairs for dual channel operation.