Unless you agreed to a certain cancellation policy (very rare), you can cancel at any time. As a courtesy, you should cancel as soon as you know you will not be using the reservation. Rates are determined by the number of reservations they have, so by keeping a low rate and not using it, you could be denying someone else of a low rate.