Yes, stamp duty can be refunded when excess stamp duty has been paid, unused stamp papers, cancellation of a sale deed before registration, or under a court order that mandates the return of a property due to legal disputes.