The quick answer is no, you can't effectively learn to play piano on a 25 key keyboard. You can really only play with one hand on a 25 key keyboard. Therefore, you wouldn't be learning to play the piano properly. That being said, 25 key keyboard are great for beginner producers who want to learn how to write catchy loops. If you want to learn full-scale chords, then you'll need a bigger keyboard.