Straining the custard filling is not absolutely necessary, but it helps ensure a smooth and lump-free texture in the filling. It's a good practice for a more refined final product.