Can Life Insurance Payout after Death Help Pay for Funeral Expenses?

Can Life Insurance Payout after Death Help Pay for Funeral Expenses?