Yes, you can practice piano quietly, but the nature of music means there are lots of dynamic changes. That means some parts of a song are meant to be played quietly, while others are meant to be played loudly. For these types of songs it's important to be able to practice both quietly and loudly.