If the layover is 14+ hours or overnight you are required to pick up your luggage and re-check. You can see this on the bag tag or your stub, which will list the city where you overnight as the 'final' destination once you check it for the first time.