While it may seem like it is in good repair now, it’s not likely to last. A significant amount of electrical components make up a car. Water can damage these components and compromise their integrity as time goes on. Even if the vehicle is working now, it doesn’t mean that future issues won’t arise from the flood damage.
If you are set on purchasing a flood-damaged vehicle, you should have a mechanic you trust examine it. They may be able to identify any potential problems that exist.