Yes, sound waves can cancel each other. The interaction between waves can be constructive and destructive depending on what their wavelengths, frequencies, and relative phases are.
If the peaks line up with troughs, they form destructive waves and cancel out each other. Noise-canceling headphones are based on the destructive waves phenomenon.
Read more