Can a flooded car be saved?

Do you repair or junk your car if its flooded? Is it always a total loss?