Firstly, you will need to refer to the cancellation policy for the property. The owner may also have a non refundable booking fee for the property which you will be liable for no matter when you cancel.
If there is a non refundable booking fee, you will be able to view this will be shown in the summary before you book the property.