Depends on intent, if you gave two people offers for one position just to see which one would accept the fastest you'd have a lawsuit. If there was a genuine reason then it's fine. Just like how a company can't sue you if you recind after signing a contract, even if the company stopped hiring and had monetary damages as a result.