Is the following senetence acceptable?

If you had accepted my advice, you wouldn't have suffered such a pain.