Default [Q] (Q) Flashing S5 variants!!!

Hi can I flash a 900i custom rom over a 900M phone???
If not what could happen???
Thanks