Is it possible to do the same things you would do in the AnimInstance class but put them in the main class?

I would like to do the same things that I would do in the animinstance class in the main class. Is it necessary creating animinstance class?

Thanks

Kinds Regards

Giovanni