It depends. If you’re racing, it’s more aerodynamic to wear goggles under your swim cap, as they’re less likely to get pulled off (important if you’re in a mass start swim). But for adjustability and ease of taking them on and off at swim practice, over the swim cap is just fine.