life insurance

this might be a really stupid question but when are you supposed to buy life insurance, like how old should you be to buy it?