car totaled

What happens if my car is totaled? Does insurance pay the blue book