Composite fillings can be used on both front and back teeth, depending on the size and location of the cavity or damage.