No, sandbars can form in rivers, lakes, and even man-made water bodies. They are primarily shaped by water movement and sediment deposition, which can occur in various aquatic environments.