You should pre cook the apple a little, especially since muffin's don't bake for a very long time. It would be perfectly fine to not cook the apple...its not like youre going to risk food poisining or anything...but so that it's not too hard in the muffins you should pre-cook them.