Absolutely, WD-40 can be applied on painted wood surfaces to deter carpenter bees.