This is true, but if it uses up all the spell slots (say, for a warlock), that class is then out of aces in the hole for any future encounters. Personally, I rarely (if ever) see a player blow all their resources in the first fight of the day unless it’s a really bad one, or they’re pretty sure...