Yes, you can substitute whole wheat flour for all-purpose flour. I don't recommend using more than 50% whole wheat as it will make the muffins denser.