Airlines and the airport calculate the time so that passengers can comfortably make their connection. This calculation includes:

– transfers between terminals;
– whether baggage needs to be collected and re-checked.

Therefore, even if the ticket indicates a 20–30 minute layover, the airline and airport services have calculated everything many times, and under normal conditions, without flight delays, you will be able to make your connection.