this is true whether the costs are implicit or explicit. both matter for firms' decisions.
economic profit vs. accounting profit
accounting profit
total revenue minus total explicit costs
economic profit
total revenue minus total costs (including explicit and implicit costs)