Some DJs do pre-record their sets, but it's not the standard. Usually, a DJ will pre-plan what tracks need to be played at a particular event and then mix while on stage.  Pre-recording sets is not very cool and takes away from the experience of seeing a DJ perform. DJs sometimes get accused of pre-recording their sets and get labeled as "fake DJs."