Yes, you can perform a squat exercise in the pool. When you stand in the shallow-end, most of your upper body would be above the water. That body-weight works against your working muscles.
This is also a good balance exercise. Use pool noodle or any floating device to support you if you find it too difficult to stay balanced.
Stand in the shallow-end with wide stance and put your hands by your side. Keep your back straight.