Looking briefly at the Ardupilot web page , it lists all the compatible boards that can be used , flicking though they are all far more powerful than the Arduino mega . If you use a supported board you will have a better chance of getting something working and therefore save time effort and money ?
If it’s not listed … then I’d guess no, but you could try their forum .