Betting systems aren't illegal per say, however there is a potential they could be cheating. So, if being played correctly, the system one uses doesn't matter, even the Martingale.