The stars that make up the constellation Cancer are at vastly different distances from Earth. Some are relatively close, while others are millions of light-years away.
Therefore, it's not possible to give a single distance for the constellation Cancer from Earth.