This depends on the DJ and the context. You will find instances where a DJ set may be pre-recorded, like for a radio show that is to air later, or one that is done live while streaming/recording on the internet.