If the insulin was frozen it won't work anymore.
But depending on the box it was in it may not have frozen.
If the insulin looked normal when you found out, I'd try it early in the day with a meal so I could see if it still works while also having plenty of time to correct before even thinking about going to bed.
I would not use up my last not possibly frozen insulin before doing this of course.
Alternatively, if I couldn't use the hassle because I was busy, I'd phone my pharmacy and tell them about a fridge accident and needing extra insulin.