Q:

Does the insurance pay out when the person commits suicide

Answer

Sometimes. Life insurance contracts have clauses in them addressing self-inflicted death. Some will pay, some will not. ChaCha!