A night shift is either a group of workers who work during the night, or the period in which they work.
A night shift can refer to a group of worker who work during the night or the time when they work.