You should be entitled to compensation if your total delay in arrival was 3 hours or more. However, you will need to have booked a connecting flight with sufficient time to transfer. Claiming compensation is only possible if you booked with same carrier under the same booking reference.