Yes, but you ought to understand what "Mammon" means.
William Tyndale, before he was martyred for translating the bible into English wrote about this passage in his work "The Parable of the Wicked Mammon" which he often refers to as "Mammon".
First, Mammon is an Hebrew word and signifieth riches or temporal goods, and namely, all superfluity, and all that is above necessity, and that which is required unto our necessary uses, wherewith a man may help another, without undoing or hurting himself. For Hamon in the Hebrew speach, signifieth a multitude, or abundance, or many. And therehence cometh Mahamon, or Mammon, abundance, or plenteousness of goods or riches.
Secondarily it is called unrighteous Mammon, not because it is gotten unrighteously, or with usury, for of unrighteous gotten goods can no man do good works, but ought to restore them home again...
But singularly before God it is called unrighteous Mammon, because it is not bestowed, and ministered unto our neighbours need. For if my neighbour need and I give him not, neither depart liberally with him, of that which I have: than withhold I from him unrighteously that which is his own. For as much as I am bounden to help him by the law of nature, which is, whatsoever thou wouldest that another did to thee, that do thou also to him. And Christ (Matthew 5) Give to every man that desireth thee. And John in his first Epistle, if a man have this world's good, and see his brother need, how is the love of God in him? And the unrighteousness in our Mammon see very few men: because it is spiritual, and in those goods which are gotten most truly and justly, which beguile men. For they suppose they do no man wrong in keeping them, in that they got them not with stealing, robbing, oppression, and usury, neither hurt any man now with them.
So Mammon is what we have which is in excess of what we need, which we should use to help our neighbour in need. And, yes, it is a warning, for if you don't do this how is the love of God in you? (1 John 3:17) (see also Mark 10:21-25; Matthew 5:42; Matthew 7:12).
[Not that salvation is of works, but of faith. But truly, works follows unfeigned faith out of love and not for reward as Tyndale explains in the above mentioned writing on "Mammon", as also do the apostles.]