No,
not anyone can take out a life insurance policy on you.
They must have a financial
relationship to you, or be a very close relative. The insurance company requires that someone taking out life insurance on another person must have an "Insurable Interest" in that person.
Someone to whom you owe
a large amount of money could take out a life insurance policy on you, so that
they would get paid if you passed away.
Or, a relative could take out life insurance on you to help pay for your funeral costs, or to provide for your family you currently help financially.
However, you would have to agree to the life insurance policy, and sign the application, in order for them to take out the policy. And, you may need to answer some questions about your health.
Here is an article with more information on Can you buy life insurance on anyone?