Do aquatic plants need roots?

Aquatic plants obviously don’t have a problem obtaining water. So roots presumably function primarily as anchors.

This is a little different with land plants as they only get nutrients from their roots?

It is the same on land plants. As they also get nutrients from their stomata.