If you don't want them you could post them for auction or give them to basil or any of the NPC's before learning at least you'd get crowns for it instead of learning them by accident.
My thoughts regarding learning recipies:
I think there's an option when selected the game warns you when you are attempting to learn a recipe. But it would be a good idea to unlearn a recipe in case you learned by accident.