Document class AND some frame in timeline?

Hi! Is it good to have a document class and still some other frames in the mainTimeline with some code inside?