Technically, yes. If you can play any other instrument, like the guitar, it may be easier to learn to piano since your ears are already accustomed to beat and rhythm. Bear in mind, however, that these instruments still require different techniques and patterns, hence why it may come a little confusing at some point. Playing the guitar won’t make you a great pianist, but it can help speed up your learning process.