No, it is not at all correct. How can you be expected to do problems like this and tell us that you do not know what "dimension" means and do not know what "direct sum" means? And, frankly, that is exactly what you are saying. U and W are both subsets of R3. Their direct sum is also a subset of R3 and so cannot have dimension higher than 3. Even if it were true that "dim(W)+ dim(U)= 6" but that tells you nothing about the dimension of their direct sum.
U= {(x,y,z)| x+ 2y+ 3z= 0}. You can, for example, solve that equation for x: x= -2y- 3z. Now, if we take y= 0, z= 1, we get x= -3 so <-3, 0, 1> is a vector in U. If we take y= 1, z= 0, we get x= -2 so <-2, 1, 0> is a vector in U. In fact it is easy to show that those two vectors form a basis for U (that's the advantage to using "0" and "1" for y and z) so the dimension of U is 2, not 3.
W= {(x,y,z)| x+ y+ z= 0}. z=-x-y so if we take x= 1, y= 0,we get z= -1. <1, 0, -1> is a vector in W. If we take x= 0,y= 1, we get z= -1 so <0, 1, -1> is a vector in W. Again, it is easy to see that they form a basis for W. W has dimension 2, not 3. But their direct sum is still a subspace of R3- the dimension of the subspace must be less than or equal to 3 so the sum, 2+ 2, is not the dimension of their direct sum.
The direct sum combines the bases. Since {<-2, 1, 0> , <-3, 0, 1>} is a basis for U and {<0, 1, -1>, <1, 0, -1>} is a basis for W, {<-2, 1, 0>, <-3, 0, 1>, <0, 1, -1>, <1, 0, -1>} spans their direct product. But that is not a basis because the four vectors are not independent. You need to find a subset of those 4 that are independent. The number of independent vectors that span the direct product is its dimension.
If you do not understand any of those words, like "independent" and "span", look them up in your textbook. They are essential to defining "dimension" of a vector space.