Is the next sentence syntactically and semantically acceptable?

Was it for this that we suffered and toiled?
acceptable