Yes, I'd say so. Someone might find a minor conceptual difference, but it hardly matters. You could write them as:
"The way in which the law applies to education does not affect this school."
"The way in which he handled the situation displayed courage."
Student or Learner