Can I cancel and refund my ticket if my flight is cancelled or delayed?

Can I cancel and refund my ticket if my flight is cancelled or delayed?