It depends. The EU regulation clearly states that all passengers are entitled to compensation in case of a flight is delayed more than three hours. However, it also explains that passengers travelling free of charge are not entitled to ask for such compensation.