It depends on the airline and the specific itinerary. You should check with your airline to see if they offer luggage storage or transfer services during layovers. Some airlines may allow you to check your luggage all the way through, while others may require you to collect your luggage and re-check it for your connecting flight.