My question involves a consumer law issue in the State of: California

I had to pull my daughter out of daycare 2 days into the month due to safety concerns. I had not paid for the month of service yet, and the facility is using our last month's deposit as payment. Is this legal? I am due a refund?