If there are proven methods, it is wise to study them. Randomly pressing keys on a piano until a nice sound comes out is definitely not the way to go about learning musical composition. Those who have good knowledge don't waste their time doing that. All the grimy work was taken care of by the musicians of the far past who have since passed their knowledge down to us