In most cases, yes. Inlays have essentially the same function as fillings in that they "fill in" a hole left by a cavity, but they are much more durable and are tooth-colored. However, in some cases, the cavity or hole is too large and may cause bleeding, in which case the dentist will likely recommend an onlay or crown.