That's how learning to cook works - just try stuff and see what happens (although for things like bread or white sauce, I learnt the basic ideas from my mother and then I just make them up). Always have something quick and easy in the cupboard in case it goes tits-up though :)