You can, as long as it isn't obvious that you hacked it(Such as catching it in a location where it can't be caught, LV it was caught, etc.). The same goes for Pokegened Pokes. You'll easily be caught if you have Pokes with Illegal Movesets/Abilities or Unreleased variants of those things.