Is It possible to change the side of 0 and 1 in Huffman tree?

When we are constructing the Huffman tree to get the Huffman codes, Is it possible to give "1" to left side and "0" to right side rather than giving "0" to left side and "1" to right side of the tree?

You can assign the $1$ and $0$ as you like, but be consistent. Only your code change, i.e. a 1011 becomes a 0100.
• From the codeword itself you cannot determine the assignment. You need to look into the implementation itself. Most implementations however assign the left-child a $0$ and the right-child a $1$. – dtt Jul 10 '16 at 13:39