Of course, you can also install only two bars. What is important is the assignment of banks 1 and 2 on the mainboard. It should also be taken into account that if the data of the memory bars are not identical, the overall performance of the "worse" memory bars is decisive.