After my 2008 Vios was flooded, the OEM alarm and power lock doesn't work anymore.

If I decide to replace it with an aftermarket one, do you think it will work now?

I appreciate your inputs.