Yes, LAGs can be a substitute for xSTP.
Generally, LAGs are a better and less-complex choice than having the same links without configuring them as a LAG.
You can also run xSTP over a LAG. That will often be the case when you have diverse switches in addition to diverse links.