Yes, the fee is assessed when calculating PnL. The formula for calculating PnL is PNL = (Exit Price x Amount Sold) - (Entry Price x Amount Bought) - Fees.
Remember that the P&L calculator on WhiteBIT does not consider fees or funding when showing your approximate P&L. So, use it for the general trading strategy evaluation rather than for accurate calculations.