Is the next sentence syntactically and semantically acceptable?

It was Anne Elliott who loved Captain Wentworth but who rejected his first proposal.
acceptable