If properly filled, properly smoothed & polished, the filling should not flake off.
Sometimes, some of the bonding
or adhesive may flake off though. The best way to assess the area is with your tongue or the inside of your cheeks. If a large area of the filling broke off & feels rough immediately after it was placed, then the filling may be broken & may need to be assessed or repaired though.