Usually you can cancel 24h before your stay for free (unless you have been informed about something else). After that you pay for the first night.