I would think its all done after any job offer, it's pretty standard for companies to offer you a job subject to successful referencing. Also it's just a check that you have worked at these places, and haven't made anything up, your previous employers can't offer opinions on you anymore.