Is the next sentence syntactically and semantically acceptable?

I brought John a razor with which to shave himself.
acceptable