No! You have to learn to play what you want to play. Classical music makes it a little easier to learn the right technique, but there is a lot of piano music that has nothing to do with classical and is just as fantastic.

That said, it always makes sense to be open to the different genres of music, there is so much to discover.