Marrying for security presupposes you have not created any on your own or from your family of origin in terms of money and emotional support. If you have that, you need not worry about marrying for security. If you do not, then marrying for security could be excused and understood, but it is still not the ideal.
While security is important, it is not a reason to marry that trumps love. Security comes in many forms and I do believe it is possible to have both. Ultimately if a couple love one another they will find a way to security. Marriage for security often leads to costly divorces later, when the other person finds love.