Yes they can be planted in pots (actually tubs without holes are best), but as Bill suggests, look into varieties that suit your desires. The link below is for a backyard pond but gives you an idea on planting container size and shape.

https://www.bhg.com/gardening/landscaping-projects/water-gardens/growing-water-lilies/