It depends what the local rules are and if its a first point of entry and if the flight is a continuation or a swap onto a new flight.
Some places it physically impossible for the baggage to be transferred as the baggage halls are different and there is no connection into the intra EU hall.