Not quite accurate. This was the law for a married woman. It was directed more at whether adultery had been committed rather than the assault on the woman.
For an unmarried woman, the law made no distinction between rape and seduction. In either case the man was forced to marry her, and she him, and he had to pay financial compensation to her father for the loss of value to his daughter. No concern was given to the desires of the woman involved. (Maybe she didn’t want to marry the guy who raped her.)
I wasn’t comprehensive and should not have paraphrased, because I usually mess it up, here’s the whole thing.
Deuteronomy 22:
23 If a damsel that is a virgin be betrothed unto an husband, and a man find her in the city, and lie with her;
24 Then ye shall bring them both out unto the gate of that city, and ye shall stone them with stones that they die; the damsel, because she cried not, being in the city; and the man, because he hath humbled his neighbour’s wife: so thou shalt put away evil from among you.
25 But if a man find a betrothed damsel in the field, and the man force her, and lie with her: then the man only that lay with her shall die.
26 But unto the damsel thou shalt do nothing; there is in the damsel no sin worthy of death: for as when a man riseth against his neighbour, and slayeth him, even so is this matter:
27 For he found her in the field, and the betrothed damsel cried, and there was none to save her.
28 If a man find a damsel that is a virgin, which is not betrothed, and lay hold on her, and lie with her, and they be found;
29 Then the man that lay with her shall give unto the damsel’s father fifty shekels of silver, and she shall be his wife; because he hath humbled her, he may not put her away all his days.