Aasm code into module

Is it posible to move big aasm code into a module and then include it
into a class and it work correctly?