It's a good idea to buy life insurance when you have people who rely on your income and would suffer financially if you were to pass away.
You may want to speak with a financial advisor to help determine the appropriate type and amount of life insurance for your individual situation.