No import statement on timeline code?

If you put code on a frame you don’t need to import the packages do you?

So, are they done automatically and if this is the case does that mean writing classes is more efficient?