Well, it really depends on what level you want to reach. If you’re satisfied with being able to play melodies in both hands and moving melodies together, then no, I suppose you don’t have to learn chords.  However, beyond that, knowing how to play chords is an essential part of learning how to play the piano. It sets an important foundation for more advanced music, almost all of which is based on chords.